ubuntu上如何安装nginx
sudo apt update
sudo apt install nginx
nginx -v
# 设置自动启动
sudo systemctl enable nginx
sudo systemctl reload nginx
配置
nginx 配置文件:`/etc/nginx/nginx.conf`
nginx 日志文件:`/var/log/nginx`
sudo apt update
sudo apt install nginx
nginx -v
# 设置自动启动
sudo systemctl enable nginx
sudo systemctl reload nginx
配置
nginx 配置文件:`/etc/nginx/nginx.conf`
nginx 日志文件:`/var/log/nginx`