系统相关
首页 > 系统相关> > Ubuntu18.4安装nginx

Ubuntu18.4安装nginx

作者:互联网

第一步:apt upgrade所有软件包


第二步:下载Nginx

apt install nginx

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

命令: nginx -v systemctl status nginx


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

命令:curl 127.0.0.1

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

标签:Ubuntu18.4,查看,命令,apt,nginx,systemctl,安装
来源: https://www.cnblogs.com/onejuice/p/14678798.html