
运维
moqidian
改变自己!
展开
-
nginx日志分析工具goaccess 安装
nginx日志分析工具goaccess 安装原创 2023-01-09 11:47:58 · 250 阅读 · 0 评论 -
CentOS 7.x编译安装Nginx1.10.3+MySQL5.7.16+PHP5.2 5.3 5.4 5.5 5.6 7.0 7.1多版本全能环境
准备篇一、防火墙配置CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动2、安装iptables防火墙yum install iptables-...转载 2018-03-30 16:48:57 · 757 阅读 · 0 评论 -
CentOS 6.2编译安装Nginx1.0.12+MySQL5.5.21+PHP5.3.10
CentOS6.2编译安装Nginx1.0.12+MySQL5.5.21+PHP5.3.10说明:操作系统:CentOS 6.2 32位系统安装教程:CentOS 6.2安装(超级详细图解教程)http://www.osyunwei.com/archives/1537.html准备篇:一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器...转载 2013-06-14 15:34:09 · 1208 阅读 · 0 评论 -
CentOS Linux Vsftp服务器安装配置
1、安装vsftpdyum install vsftpd -ychkconfig vsftpd on#设置开机时自动运行2、配置vsftp服务器配置文件说明:/etc/vsftpd/vsftpd.confvsftpd的核心配置文件/etc/vsftpd/ftpusers用于指定哪些用户不能访问FTP服务器/etc/vsftpd/user_list 指定允许使用vs...原创 2012-04-20 15:59:09 · 1997 阅读 · 0 评论 -
mysql主从复制,Last_Error:Error 'Duplicate entry
mysql主从复制,Last_Error:Error 'Duplicate entry 解决办法: mysql> STOP SLAVE;mysql> SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;mysql> START SLAVE;原创 2014-07-12 08:30:07 · 1260 阅读 · 0 评论 -
Linux MySql 启用InnoDB
一、备份my.cnfcd /etccp my.cnf my.cnf_bak二、修改my.cnf[mysqld] 后加入vi my.cnfdefault-storage-engine=InnoDB原创 2014-07-16 15:27:27 · 521 阅读 · 0 评论 -
PHP-FPM日志中出现”好像很忙碌”,您需要增加pm.start_servers,或pm.min/ max_spare_servers
PHP-FPM日志中出现”好像很忙碌”,您需要增加pm.start_servers,或pm.min/ max_spare_serversseems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 9 id转载 2014-02-10 15:28:45 · 8288 阅读 · 0 评论 -
Linux安装配置memcached服务
1、下载memcached服务器端安装文件,版本: memcached-1.4.13.tar.gz memcached下载地址 http://memcached.org/2、下载libevent,memcached需要用到socked,依赖此安装文件。版本: libevent-1.4.12-stable.tar.gz libevent 下载地址:http://www原创 2012-05-27 17:55:28 · 709 阅读 · 0 评论 -
rsync 排除指定目录有两种做法
rsync 排除指定目录有两种做法: 一种是 --exclude "dir/" 一定要在目录后面加入 / 一种是 --exclude-from=exfile;其中exfile 文件中写入目录名,一个目录一行,如:cat exfiledir/dir1/dir2/test/exfile 一定要写全路径转载 2012-12-20 15:54:16 · 1893 阅读 · 0 评论 -
memcache PHP模块安装配置
1. 下载 memcache 安装包 memcache PHP模块下载地址: http://pecl.php.net/package/memcache tar -zxvf memcache-2.2.6.tgz cd memcache-2.2.6 /usr/local/php5/bin/phpize ./configure --enable-memcache --原创 2012-05-27 18:05:36 · 665 阅读 · 0 评论 -
VSFTP 上传异常断线 解决
修改/etc/vsftpd.conf,将空闲和传输超时分别设置为900,0#空闲连接超时idle_session_timeout=900#数据传输超时data_connection_timeout=0原创 2012-06-17 00:05:46 · 1597 阅读 · 0 评论 -
设置一个cron任务记录下服务器的web请求数据 shell
想看看web服务器到底最高峰的时候同时在线用户的数量,于是就简单的设置了一个 cron 任务,每隔10分钟记录一下对80端口的连接数,当然了要把同一个IP的链接当一个算了。另外,把时间写在第一次统计之前,以便参照。*/10 * * * * date '+%Y-%m-%d %H:%M:%S' >> /root/stat1 && netstat -antp|grep :80 |awk '{prin原创 2012-05-17 15:07:19 · 437 阅读 · 0 评论 -
当前80端口并发数
echo "当前并发数:`netstat -nt | grep 80 | awk '{print $5}' | awk -F":" '{print $1}'| sort | uniq -c | sort -r -n | awk 'BEGIN{total=0}{total+=$1}END{print total}'`";原创 2012-05-12 17:19:35 · 977 阅读 · 0 评论 -
nginx 502 Bad Gateway 错误问题收集
因为,nginx和lighttpd的文档真的很少,更不用说中文文档了,所以收集一些和502有关的错误在这里,保留来源地址,建议看来源地址的内容。 502是FastCGI出现问题,所以从FastCGI配置入手。 1.请检查你的FastCGI进程是否启动 2.FastCGI进程不够使用 请通过执行 netstat -anpo | grep "php-fpm" | wc -l转载 2012-05-05 10:07:33 · 855 阅读 · 0 评论 -
APACHE ab
以前安装好APACHE总是不知道该如何测试APACHE的性能,现在总算找到一个测试工具了。就是APACHE自带的测试工具AB(apache benchmark).在APACHE的bin目录下。格式: ./ab [options] [http://]hostname[:port]/path参数:-n requests Number of requests to perform转载 2012-03-10 20:25:02 · 581 阅读 · 0 评论 -
ZendFramework中application.ini配置
;项目配置信息;项目配置信息到配置方法. 以 Apache 服务器模式为例:;可以在 httpd.conf 虚拟主机配置段或者项目 .htaccss文件里定义.;具体定义方法是添加一行指令: SetEnv APPLICATION_ENV 产品运行环境;比如开原创 2011-07-08 22:19:56 · 620 阅读 · 0 评论