一、Linux 开机自启设置(主流系统通用) 1. systemd 方式(CentOS7+/Ubuntu16.04+ 推荐) (1)创建自启服务文件 # 进入系统服务目录 cd /etc/systemd/system/ # 新建服