服务器启动时自动启动 nginx 服务 发表于 2018-11-03 | 分类于 Linux 编辑 /etc/rc.local 文件, 加入启动 nginx 服务的命令 编辑 nginx.conf 文件, 在第一行加入下列语句即可