Ubuntu18.4安装nginx
时间:2021-04-19 23:44:10
收藏:0
阅读:32
第一步:apt upgrade所有软件包
第二步:下载Nginx
apt install nginx

第三步:查看是否安装成功,启动状态
命令: nginx -v systemctl status nginx


第四步:本地查看是否有默认页面
命令:curl 127.0.0.1

添加开机启动命令:systemctl enable nginx
原文:https://www.cnblogs.com/onejuice/p/14678798.html
评论(0)