随笔分类 -  Linux

摘要:看配置文件的第180行跟188行 这个是重点! 于是在近服务器安全组设置那里,设置放行 39000:40000端口,基本就OK了。 如果还不行的话: 188行 ForcePassiveIP 后面改成服务器的外网IP,改完重启FTP服务器 ,就可以正常的连接了!!! 阅读全文
posted @ 2024-09-22 09:53 求必印 阅读(169) 评论(0) 推荐(0)
摘要:1、修改apache配置httpd.conf文件 #关闭trace-method TraceEnable off #隐藏Apache版本信息 ServerSignature Off ServerTokens ProductOnly 2、修改网站配置文件,不允许777目录执行任何可执行脚本 <Virt 阅读全文
posted @ 2024-09-06 15:56 求必印 阅读(28) 评论(0) 推荐(0)
摘要:ps -ef|grep httpd|wc -l 统计httpd进程数,连个请求会启动一个进程,使用于Apache服务器。 查看Apache的并发请求数及其TCP连接状态:netstat -n | awk '/^tcp/ {++S[$NF]} END {for (a in S) print a, S[ 阅读全文
posted @ 2020-04-08 21:17 求必印 阅读(426) 评论(0) 推荐(0)
摘要:centos linux服务器apache+mysql环境访问慢优化方法 阅读全文
posted @ 2020-01-29 17:18 求必印 阅读(420) 评论(0) 推荐(0)
摘要:1.可查询数据库最大连接数 show variables like '%max_connections%'; 2.修改数据库最大连接数,最大限制上限为16384。 找到数据库配置文件my.cnf,在配置里将max_connections的值(若没有就新增)改为你想要的连接数量,例如: max_con 阅读全文
posted @ 2020-01-08 15:00 求必印 阅读(434) 评论(0) 推荐(0)
摘要:1、先查看是否安装crond yum list installed | grep cron 若没有安装: yum -y install vixie-cron yum -y install crontable 2、查看crond的config 2,3,4,5是否开启 chkconfig --list 阅读全文
posted @ 2019-12-15 20:50 求必印 阅读(903) 评论(0) 推荐(0)
摘要:yum --enablerepo=remi-php56 install php-gd php-mysql php-mbstring php-xml php-mcrypt //安装GD库扩展 service httpd restart //重启生效 阅读全文
posted @ 2019-12-02 10:33 求必印 阅读(516) 评论(0) 推荐(0)
摘要:1、centos 安装流量监控iftop apt-get install iftop -y 2、查看网卡名称 ifconfig 3、查看端口占用情况 iftop -i 网卡名称 -P 执行 netstat 命令反查流量大的端口对应进程。 netstat -tunlp |grep 端口号 最终定位出来 阅读全文
posted @ 2019-06-11 23:01 求必印 阅读(5373) 评论(0) 推荐(0)
摘要:1.Apache 1.Apache #安装apache软件 yum -y install httpd #安装apache软件 #安装apache软件 yum -y install httpd #启动httpd服务 service httpd start #启动httpd服务 #启动httpd服务 s 阅读全文
posted @ 2019-03-05 17:29 求必印 阅读(320) 评论(0) 推荐(0)
摘要:rm -rf * 阅读全文
posted @ 2018-05-13 16:29 求必印 阅读(6569) 评论(0) 推荐(0)
摘要:第一步:找到apache启动命令: [root@WAPBJ01 ~]# ps -ef|grep httpdroot 10575 1 0 19:45 ? 00:00:03 /usr/sbin/httpd -k startmyuser 15356 2982 0 Jan19 ? 00:00:00 /hom 阅读全文
posted @ 2017-03-29 22:02 求必印 阅读(545) 评论(1) 推荐(0)