安装:apt-get install nginx。 等待 查看是否安装成功 :nginx -v 启动 :service nginx start 启动后,在网页重输入ip地址(ifconfig -a),即可看到nginx的欢迎页面。至此nginx安装成功

一些相关文件的位置

主目录


主命令