Ubuntu20下安装nginx
sudo su root
apt-get install nginx
service nginx start
service nginx stop
nginx文件安装完成之后的文件位置:
/usr/sbin/nginx:主程序
/etc/nginx:存放配置文件
/usr/share/nginx:存放静态文件
/var/log/nginx:存放日志
关于nginx配置参考:
- https://blog.csdn.net/qq_46312987/article/details/118895520
- https://www.cnblogs.com/duhuo/p/8323812.html
- https://blog.csdn.net/a_helloword/article/details/84316291
安装详情参见:https://blog.csdn.net/sunrj_niu/article/details/111871161