环境:
Nginx安装
1、首先更新apt-get源
sudo apt-get update
2、安装
sudo apt-get install nginx
3、安装完后进行测试
sudo /etc/init.d/nginx start //启动nginx
sudo /etc/init.d/nginx stop //关闭nginx
sudo /etc/init.d/nginx restart //重启nginx
sudo service nginx start //启动
sudo service nginx stop //关闭
sudo service nginx restart //重启
4、安装后的初级配置
时间: 2024-11-09 10:40:54