让服务开机自动启动

简介:

在centos 6中 一般 

    chkconfig --add httpd

    chkconfig httpd on

在centos 7中 

    systemctl enable httpd



本文转自 神迹难觅 51CTO博客,原文链接:http://blog.51cto.com/ji123/1953026,如需转载请自行联系原作者

相关文章
|
1月前
|
Linux
关机重启命令
【2月更文挑战第27天】关机重启命令。
12 2
|
5月前
|
Linux
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
209 0
|
NoSQL 关系型数据库 MySQL
设置系统开机服务自动启动 | 学习笔记
快速学习设置系统开机服务自动启动
203 0
|
Shell Windows
Win10系统如何设置某个软件开机自动启动
Win10系统如何设置某个软件开机自动启动
201 0
|
Shell Linux
linux 开机自动启动任务
centos 开机任务,开机执行命令
455 0
|
关系型数据库 Shell Linux
Linux设置开机服务自动启动
[root@localhost ~]# chkconfig --list     显示开机可以自动启动的服务[root@localhost ~]# chkconfig --add ***  添加开机自动启动***服务[root@localhost ~]# chkconfig --del ***  删...
1614 0
|
Linux
linux中将程序加入到开机自动启动
如果将在linux中将命令或者程序设置为开机自动启动,只需要进入到将对应命令加入到/etc/rc.d/rc.local文件里即可,如下 打开文件,vi /etc/rc.d/rc.local   #!/bin/sh## This script will be executed *after* all the other init scripts.
1303 0
|
监控 Linux
|
安全 Windows
注册表与木马(二)——实现程序开机自动启动
注册表的相关知识参考之前一篇 http://www.cnblogs.com/LexMoon/p/C_muma.html 现在的任务是将一个程序写入注册表中开机自启动的对应位置里面。   现在有一个简单的 hello.exe (路径 :  D:\hello.exe ),功能是在命令行显示输出 "hello world" 。
1286 0