Ubuntu18.4安装nginx

第一步:apt upgrade所有软件包


第二步:下载Nginx

apt install nginx

第三步:查看是否安装成功,启动状态

命令: nginx -v systemctl status nginx


第四步:本地查看是否有默认页面

命令:curl 127.0.0.1

添加开机启动命令:systemctl enable nginx

posted @ 2021-04-19 21:38  Onejuice  阅读(122)  评论(0)    收藏  举报