- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2010-12-4
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
- user www www;
- worker_processes 1;
- error_log /home/wwwlogs/nginx_error.log crit;
- pid /usr/local/nginx/logs/nginx.pid;
- #Specifies the value for maximum file descriptors that can be opened by this process.
- worker_rlimit_nofile 51200;
- events
- {
- use epoll;
- worker_connections 51200;
- }
- http
- {
- include vhost/*.conf;
- }
复制代码 为啥这样不行呢我vhost里面是绑定域名的- server
- {
- listen 80;
- server_name mzirvb.com;
- server_name www.mzirvb.com;
- index index.html index.htm index.php;
- root /home/wwwroot/mzrvb;
- location ~ .*\.(php|php5)?$
- {
- fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- location /status {
- stub_status on;
- access_log off;
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- location ~ .*\.(js|css)?$
- {
- expires 12h;
- }
- log_format mzirvb '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" $http_x_forwarded_for';
- access_log /home/wwwlogs/mzirvb.log mzirvb;
- }
复制代码 启动之后提示- [root@lwenidc267 ~]# /root/lnmp restart
- =========================================================================
- Manager for LNMP V0.5 , Written by Licess
- =========================================================================
- LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
- This script is a tool to Manage status of lnmp
- For more information please visit http://www.lnmp.org
- Usage: /root/lnmp {start|stop|reload|restart|kill|status}
- =========================================================================
- Reload LNMP...
- Reload Nginx configure...
- [emerg]: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
- configuration file /usr/local/nginx/conf/nginx.conf test failed
- Nginx program is reloding!
- Shutting down MySQL. [ OK ]
- Starting MySQL. [ OK ]
- Shutting down php_fpm done
- Starting php_fpm done
复制代码
[ 本帖最后由 xiaoshen 于 2010-12-7 14:57 编辑 ] |
|