1.ubuntu安装Nginx

默认安装程序文件: /usr/sbin/nginx 
默认安装配置文件: /etc/nginx/
默认站点配置文件:/etc/nginx/sites-enabled/default
默认页面文件:/var/www/html/index.nginx-debian.html

1
2
$ sudo apt update
$ sudo apt install nginx

2.查询nginx安装信息:

ubuntu@algz4:~$ whereis nginx
nginx: /usr/sbin/nginx /usr/lib/nginx /etc/nginx /usr/share/nginx /usr/share/man/man8/

3.查询nginx运行信息

$ systemctl status nginx

image.png