- 查看开机启动项
ls /etc/systemd/system/multi-user.target.wants/
- 设置开机启动
systemctl enable mongodb.service
ls /etc/systemd/system/multi-user.target.wants/
systemctl enable mongodb.service
上一篇:ntp测试
Centos7调整开机运行级别
首先了解 /etc/inittab脚本 (centos7的/etc/inittab已经没有用了) Linux 开机脚本启动顺序: 第一步:启动内核 第二步:执行init (配置文件/etc/inittab) 第三步:启动相应的脚本,执行inittab脚本,并且执行里面的脚本/etc/init.d rc.sysinit rc.d rc.local。。。 第四步:启动login登
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M