Logo

监控宝&NGiNX无痛升级

玩了一下监控宝的MySQL跟NGiNX的监控,才发现我在鞭NGiNX的设定设定不够齐全,好吧~ 偶认命偶大不了重鞭就是了!火大的偶把能鞭的全上(文章后面会附上过程)。 ?
阿六仔的监控宝免费版的功能可以监控3个站台、监控频率15分钟(也算不错了,Hyperspin以及大多免费监控服务都是1小时),另外像是一般Linux系统或VPS和独立主机也可以监控CPU使用率、I/O、记忆体使用率和网卡流量以及Apache/Lighttpd/Nginx/MySQL等项目(需自行安装Net-SNMP)。反正监控宝还有一堆功能都是省去自己装一堆监控程式的麻烦,免费版我觉得就能应付很多龟毛的人了,唯一要挑剔的大概就是监控宝在中国这点吧~! 中国的网路长城这个也挡那个也挡,作网站监控服务要面像世界的话实在是有一定的难度,另外付费套餐我觉得也很不错,最便宜的月缴9 RMB(~45 TWD)就很好用了。不想操死自己的口以去注册个免费的玩玩看,介面以及所以有帮助文件全都是中文,很方便使用。 ?
监控宝 → 注册页面
监控宝 → 功能特色
监控宝 → 监控项目类型概述
监控宝 → 安全指引
监控宝 → 常见问题(FAQ)
以下是鞭译过程,有需要的再看吧:
cd /usr/src/
wget http://nginx.org/download/nginx-0.8.53.tar.gz
tar zxf nginx-*.tar.gz
cd nginx-*
./configure --user=www --group=www --with-rtsig_module --with-select_module --with-poll_module --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module
make
cd ..
mv -f /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
mv -f nginx-0.8.53/objs/nginx /usr/local/nginx/sbin/nginx
rm -fr nginx-*

好了之后先测试程式运作是否正确
/usr/local/nginx/sbin/nginx -t
有用启动脚本的直接重新启动
/etc/init.d/nginx restart
或是照这样执行
kill -USR2 cat /usr/local/nginx/logs/nginx.pid
kill -QUIT cat /usr/local/nginx/logs/nginx.pid.oldbin

最后看一下结果~
/usr/local/nginx/sbin/nginx -v // 显示NGiNX版本号。
/usr/local/nginx/sbin/nginx -V // 显示NGiNX的版本号以及编译环境以及编译时的参数。
NGiNX无痛升级
本文章升级NGiNX部分参考了Licess’s Blog这篇文章,感谢您~! ?

列印本文 列印本文

关于 穷苦人家的小孩

In every democracy, the people get the government they deserve. ~Alexis de Tocqueville
上一篇:
下一篇:

您可能会喜欢

桃乃木かな 桃乃木香奈 Kana Momonogi

CloudCone全自动DD安装Windows

前阵子VPS优惠 – Clou …