centos下的chkconfig命令
来源:互联网 发布:2016年离婚率数据 编辑:程序博客网 时间:2024/05/20 16:45
CentOS下开机启动管理命令:chkconfig
1. 开机启动列表查看: chkconfig --list
说明:输出所有启动服务列表
2. 添加服务: chkconfig --add servicename
3. 删除服务: chkconfig --del servicename
4. 查看具体启动服务信息: chkconfig --list servicename
例如 chkconfig --list sshd
输出:httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
说明: 0-6 分别表示的意义
等级0表示:表示关机
等级1表示:单用户模式
等级2表示:无网络连接的多用户命令行模式
等级3表示:有网络连接的多用户命令行模式
等级4表示:不可用
等级5表示:带图形界面的多用户模式
等级6表示:重新启动
5. 开启自动启动服务 : chkconfig httpd on
6. 开启自动不启动服务: chkconfig httpd off
7. Level选项: chkconfig --level 35 sshd on 将Level3和Level5设置成on 。
当然,也可以将程序或命令加入到Linux的启动文件中:/etc/rc.d/rc.local
阅读全文
0 0
- centos下的chkconfig命令
- centos下使用chkconfig命令设置开机启动服务
- linux下chkconfig命令的使用
- linux下chkconfig命令的使用
- Linux下chkconfig命令
- Linux下chkconfig命令
- centos的chkconfig指令
- chkconfig 命令的使用
- Linux的chkconfig命令
- Linux下chkconfig命令详解
- linux 下 chkconfig 命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- Linux下chkconfig命令详解
- 33 《对权威的服从:一次逼近人性真相的心理学实验》 -豆瓣评分9.0
- Spark的运行模式及运行命令
- github 上怎样把原作者 新 commits 使用在自己的 fork
- Android Studio导入第三方类库、jar包和so库
- python-进制转换
- centos下的chkconfig命令
- IDEA : Application Server was not connected before run configuration stop, reason: Unable to ping s
- UE、UI、UCD、UED?你知道你是干啥的吗
- 流畅的python--深拷贝,浅拷贝
- 九度1101:计算表达式
- 还在用Dialog吗——DialogFragment带你体验完美高效率
- C# 使用 ffmpeg 进行音频转码
- pyhton中的可变对象与不可变对象
- PAT乙级真题及训练集(18)--1006. 换个格式输出整数 (15)