
linux服务器架设
文章平均质量分 73
tjjingpan
这个作者很懒,什么都没留下…
展开
-
centos7 挂载本地yum源
安装系统时,选择最小安装时,把ip地址配置上。否则,系统安装完,无法通过网络上传iso镜像包。解决没有ifconfig命令。在没有网环境下,就需要使用光盘,或U盘。将光盘做为本地yum源。查看哪个包提供ifconfig命令yum provices ifconfignet-tools提供ifconfig命令。yum 安装net-tools。1、检查本地是否有yum源1.1、检测外网环境ping www.baidu.com1.2、检查yum源...原创 2022-01-08 06:27:37 · 5263 阅读 · 0 评论 -
centos 7 tomcat服务安装
Java+Tomcat 环境部署及安装过程图解https://www.jb51.net/article/160936.htm使用 jsvc 启动tomcat的方法(使用普通用户运行)https://www.jb51.net/article/160933.htmjava环境变量[root@localhost ~]# cat /etc/profile.d/java.sh export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.原创 2021-03-09 15:22:41 · 353 阅读 · 0 评论 -
tfs分布式文件系统集群
nginx-tfs(webservice 安装)http://192.168.0.201:7501/v1/tfs/T18RhTByJT1RCvBVdK.jpg参考文章https://github.com/yage99/tfs/blob/master/DEPLOY.mdhttps://www.linuxidc.com/Linux/2012-08/67500.htmhttps://www.aboutyun.com/thread-7206-1-1.htmlhttps://www...原创 2021-02-24 15:00:01 · 515 阅读 · 0 评论 -
centos 8.x系统配置chrony时间同步服务测试错误时间
服务端配置客户端配置客户端相关指令查看当前的同步源[root@localhost ~]# chronyc sources -v210 Number of sources = 1 .-- Source mode '^' = server, '=' = peer, '#' = local clock. / .- Source state '*' = current synced, '+' = combined , '-' = not combined,| / '?'原创 2020-12-18 16:16:23 · 1340 阅读 · 1 评论 -
在centos8 配置haproxy日志功能
国内网上的配置不适合在centos8 上做配置原谅链接https://www.digitalocean.com/community/tutorials/how-to-configure-haproxy-logging-with-rsyslog-on-centos-8-quickstartHow To Configure HAProxy Logging with Rsyslog on CentOS 8 [Quickstart]Part of the Series:Common HAPr..转载 2020-11-24 14:24:48 · 683 阅读 · 0 评论 -
frp 内网穿透
客户端配置服务端配置httpd反射代理配置外网通过custom_domains来文章内网的web服务原创 2020-11-21 10:35:55 · 190 阅读 · 0 评论 -
nginx 配置php-fpm 支持tp5
nginx.conf配置文件项目目录为/data/www/tp5 server { listen 8888; listen [::]:8888; root /data/www/tp5/public; # Load configuration files for the default server block. include /etc/nginx/default.d/*.co原创 2020-11-17 09:49:59 · 284 阅读 · 0 评论 -
sync同步文件
服务端(192.168.31.101)server.pass内存[root@localhost conf]# cat server.pass pusher:123456rsyncd.conf配置文件内容[root@localhost conf]# cat /etc/rsyncd.conf uid = rootgid = rootport = 873#use chroot = no #是否可以改变同步的根目录#read only = yes原创 2020-11-07 21:14:37 · 1722 阅读 · 0 评论 -
centos7 8 nginx 配置php-fpm
location ~ \.php$ { root /data/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /data/www$fastcgi_script_name; include /etc/nginx/fa.原创 2020-11-06 16:41:02 · 602 阅读 · 0 评论 -
centos 7 8 源码安装php
安装编译环境dnf groupinstall 'development tools yum -y install libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel libicu-devel freetype-devel openldap-devel openldap openldap-devel sqlite-devel下载源码wget https://www.php.net/distributions/php-.原创 2020-11-06 15:14:47 · 598 阅读 · 0 评论 -
linux 查看web服务器并发数
[root@VM-0-3-centos ~]# netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'LISTEN 20ESTABLISHED 51FIN_WAIT1 8FIN_WAIT2 6TIME_WAIT 1832原创 2020-11-06 11:09:43 · 366 阅读 · 0 评论 -
centos 8 nginx goaccess实时分析访问日志
1.1.1版本实时浏览不能使用,1.2版本可以。源码安装yum install ncurses-develhttp://tar.goaccess.io/goaccess-1.2.tar.gztar -xzvf goaccess-1.2.tar.gzcd goaccess-1.2/./configure --enable-utf8make # make install修改配置文件nginx日志配置文件vim /usr/local/etc/goaccess.conf time原创 2020-10-27 11:30:03 · 388 阅读 · 0 评论 -
ftp被动模式配置
1,FileZilla Server(windows)配置a,指定服务器动态开放的端口 b,在服务器有nat转换下,需要在Use the following IP填入外网地址或动态域名。2,pure-ftpd(linux)修改配置文件pure-ftpd.confa,指定服务器动态开放的端口# Port range for passive connections - keep it as broad as possible.PassivePortRange原创 2020-10-20 15:14:44 · 1528 阅读 · 0 评论 -
GVM-11 centos8 源码安装指南(OpenVas)
参考文章:https://community.greenbone.net/t/full-gvm-11-build-guide-for-centos-8/5425原文有各别不对地方,但根据原文,安装成功,并能正确进行漏洞扫描。非常感谢原文作者辛苦付出。这里做一下安装记录,不对的地方请指出。安装的操作系统:CentOS Linux release 8.1.1911 (Core) ,CPU: 4核,内存 4G,1,python 3环境安装设置使用root登录默认python3已安装[r.原创 2020-07-03 15:47:47 · 5120 阅读 · 1 评论 -
centos 7 LVS 配置 nat配置
参考链接https://linuxschool.net/note?os=CentOS_7&p=lvs&f=1Configure LVS (Linux Virtual Server) to build a load arancer.This example is based on the environment below. ...转载 2018-07-24 16:17:57 · 910 阅读 · 1 评论 -
centos 7 LVS keepalived nat 配置
参考链接https://www.cnblogs.com/mchina/archive/2012/08/27/2644391.htmlhttps://yq.aliyun.com/articles/38538vmware虚拟出4台主机,LVS服务器两张网卡,一桥接模式,一张仅主机模式,两台服务器都为仅主机模式。LVS_master的桥接网卡ip 为192.168.1.196,内网...原创 2018-07-25 11:46:17 · 758 阅读 · 0 评论 -
Lvs-DR+Keepalived的解决方案
参考https://www.cnblogs.com/liaojiafa/p/6087276.htmlwindows real server设置相关,参考下面文章http://www.loadbalancer.org/blog/direct-server-return-on-windows-2008-using-loopback-adpter/四台主机在一个局域网内,LV...原创 2018-07-26 15:47:43 · 415 阅读 · 0 评论 -
centos 7 avahi-daemon服务的作用及如何关闭
关闭systemctl stop avahi-daemon.socket ZeroconfZero configuration networking(zeroconf)零配置网络服务规范,是一种用于自动生成可用IP地址的网络技术,不需要额外的手动配置和专属的配置服务器。“零 配置网络服务”的目标,是让非专业用户也能便捷的连接各种网络设备,例如计算机,打印机等。整个搭建网...原创 2018-07-27 14:53:23 · 27345 阅读 · 1 评论 -
centos 72 httpd tomcat-8环境配置
/opt/httpd-2.4.38 --httpd软件目录/opt/apache-tomcat-8.5.38 --tomcat软件目录/opt/java/jdk1.8.0_201-amd64 --jdk目录编译 httpd2.4.38参数yum -y -q install apr-devel apr-util-devel openssl-deve...原创 2019-02-27 16:08:20 · 148 阅读 · 0 评论 -
linux kvm 安装使用指南
安装sudo apt-get install kvm qemusudo apt-get install virtinst python-libvirt virt-viewer virt-manager启动LVMsudo virt-manager 查看虚拟运行状态virsh list -all$ virsh list --all原创 2018-01-27 09:45:50 · 2222 阅读 · 0 评论