安装
sudo apt updatesudo apt install nginx
启动
systemctl start nginx.service停止
systemctl stop nginx.service重新加载
systemctl reload nginx.service
查看端口占用:
netstat -tlnp查看运行状态:
ps aux | grep nginx
或
sudo systemctl status nginx
安装
sudo apt update启动
systemctl start nginx.servicesystemctl stop nginx.servicenetstat -tlnpps aux | grep nginx
或
sudo systemctl status nginx
评论
发表评论