创建日志文件目录
vim /usr/local/nginx/conf/nginx.confnf
vim /usr/local/nginx/conf/vhosts/test.conf
nginx -t
nginx -s reload(或/etc/init.d/nginx reload)
创建日志文件目录
vim /usr/local/nginx/conf/nginx.confnf
vim /usr/local/nginx/conf/vhosts/test.conf
nginx -t
nginx -s reload(或/etc/init.d/nginx reload)
转载于:https://www.cnblogs.com/hyit/articles/4996240.html