标签:name localhost http ESS nginx服务 打开 local access listen
cd /home
mkdir toutiao
项目上传详细见安装的一二步
unzip web.zip
(注意:配置刚刚解压的安装目录,不是/urs/local/目录中的)
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /home/toutiao/web;
index index.html index.htm;
}
./nginx -s stop
/usr/local/nginx/sbin/nginx -c /home/nginx-1.17.5/conf/nginx.conf
http://192.168.203.138(自己的网址)
标签:name localhost http ESS nginx服务 打开 local access listen
原文地址:https://www.cnblogs.com/RealQ/p/14526204.html