打开文件/etc/rc.local vi /etc/rc.local 在末尾增加想要开机启动的软件 // 限制系统用户对shell资源的访问 ulimit -SHn 65535 // 这里以nginx为例,开机启动nginx nginx