[关闭]
@Tyhj 2017-05-31T08:58:55.000000Z 字数 229 阅读 1061

Nginx使用

未分类


//测试Nginx配置
/usr/sbin/nginx -t

//重新加载配置
/etc/init.d/nginx reload

service nginx start

//重启防火墙,修改生效
service iptables restart

/etc/init.d/iptables restart

//开放端口号
/sbin/iptables -I INPUT -p tcp --dport 8081 -j ACCEPT

//查看端口
lsof -i tcp:80

netstat -ntlp

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注