安装nginx

安装nginx

1.更新软件包索引

sudo apt update

2.升级所有包

sudo apt upgrade

3.安装nginx

sudo apt install nginx

4.查看nginx运行状态

sudo systemctl status nginx
sudo systemctl restart nginx
sudo systemctl stop nginx
sudo systemctl start nginx

浏览器访问localhost,出现Welcome to nginx!

nginx配置修改文件

vim /etc/nginx/sites-available/default

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容