把nginx部署成服务,随系统开机启动,方法如下:
一、下载官网下载地址:http://nginx.org/en/download.html
准备nginx-service
二、配置
三、安装服务
四、启动
Done.