Nginx
WenCheng90
这个作者很懒,什么都没留下…
展开
-
常规服务器命令
nginx服务 重启 > /usr/local/nginx/sbin/nginx -s reload 停止 killall nginx 新版本nginx service nginx start/stop/restart 找文件 回到根目录 > find ./ -name 'bao*' > /usr/local/php/s原创 2015-08-27 11:04:40 · 362 阅读 · 0 评论 -
Nginx开启Gzip压缩
1、Vim打开Nginx配置文件 vim /usr/local/nginx/conf/nginx.conf 2、找到如下一段,进行修改 gzip on; gzip_min_length 1k; gzip_buffers 4 16k; #gzip_http_version 1.0; gzip_comp_level 2; gzip_types text/plain appl原创 2015-08-27 11:05:41 · 407 阅读 · 0 评论 -
nginx error
网站报这个错,查了很久 php和nginx 都能正常运行 能解析静态页面不能解析php 后来重装了nginx 解决了,有可能是nginx的配置有问题 也有可能是网站上级目录权限不够要755原创 2015-08-27 11:05:11 · 311 阅读 · 0 评论 -
nginx File not found.
今天配置新网站报错nginx File not found. server { listen 80; server_name china.cn www.china.cn; location / { root /home/www/ayd; index index.php index.html index.h原创 2015-08-27 11:04:00 · 413 阅读 · 0 评论 -
使用ab对nginx进行压力测试
nginx以高并发,省内存著称。 相信大多数安装nginx的同学都想知道自己的nginx性能如何。 我想跟大家分享下我使用ab工具的压力测试方法和结果, ab是针对apache的性能测试工具,可以只安装ab工具。 ubuntu安装ab apt-get install apache2-utils centos安装ab yum install httpd-to原创 2015-08-27 11:06:10 · 2831 阅读 · 0 评论