- leozhang2010-12-20高级会员3582
就是搞成service nginx restart就可以用的这种方式.
我想让他开机就自动启动.解决了,原来是我把nginx.conf拷到本机用写字板打开修改了,再传回去,可能编码没选对,.用DW打开修改传回,无任何问题.
补充一下:
原来的nginx.conf:#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;#pid logs/nginx.pid;
events {
worker_connections 1024;
}http {
include mime.types;
default_type application/octet-stream;#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';#access_log logs/access.log main;
我现在改了的:
user nginx;
worker_processes 4;error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;pid logs/nginx.pid;
events {
worker_connections 1024;
}[ 本帖最后由 leozhang 于 2010-12-20 23:52 编辑 ]