Linux下面开起启动服务命令(chkconfig、ntsysv)
来源:互联网 发布:中国人工智能股票龙头 编辑:程序博客网 时间:2024/06/05 20:49
netstat可用查看目前已经启动的服务,service可以用来立即启动某个服务。chkconfig用来设置服务在开机的时候自动启动。
--查看nfs服务是否开机自动启动。可以看见6个开机级别都不会启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
--设置开机自动启动nfs服务。
[root@db ~]# chkconfig nfs on
--再次查看,可以看见2、3、4、5级别开机会自动启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
--取消开机自动启动nfs服务。
[root@db ~]# chkconfig nfs off
--再次查看,6个级别开机又都不会启动nfs服务了。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
--设置3级别开机自动启动nfs服务。
[root@db ~]# chkconfig --level 3 nfs on
--再次查看,可以看见在级别开机会自动启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:on 4:off 5:off 6:off
-------------------------------------------------------------------------------------------------------------------------
ntsysv 1.3.30.1 - (C) 2000-2001 Red Hat, Inc.
+------------+ 服务 +------------+
| |
| 您想自动启动哪些服务? |
| |
| [ ] NetworkManager |
| [*] acpid |
| [ ] amanda a |
| [ ] amd a |
| [*] anacron a |
| [*] apmd a |
| [*] arptables_jf a |
| [ ] arpwatch a |
| [*] atd a |
| [*] auditd a |
| [ ] auth a |
| [*] autofs a |
| [*] avahi-daemon a |
| [ ] avahi-dnsconfd a |
| [*] bluetooth a |
| [ ] capi a |
| [ ] chargen-dgram a |
| [ ] chargen-stream a |
| [ ] conman a |
| [*] cpuspeed a |
| [*] crond a |
| [*] cups a |
| [ ] cvs a |
| [ ] daytime-dgram a |
| [ ] daytime-stream |
| |
| +------+ +------+ |
| | 确定 | | 取消 | |
| +------+ +------+ |
| |
| |
+--------------------------------+
--查看nfs服务是否开机自动启动。可以看见6个开机级别都不会启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
--设置开机自动启动nfs服务。
[root@db ~]# chkconfig nfs on
--再次查看,可以看见2、3、4、5级别开机会自动启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
--取消开机自动启动nfs服务。
[root@db ~]# chkconfig nfs off
--再次查看,6个级别开机又都不会启动nfs服务了。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
--设置3级别开机自动启动nfs服务。
[root@db ~]# chkconfig --level 3 nfs on
--再次查看,可以看见在级别开机会自动启动nfs服务。
[root@db ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:on 4:off 5:off 6:off
-------------------------------------------------------------------------------------------------------------------------
ntsysv:类图形界面管理模式来设置开机启动。(RedHat特有的,基本上chkconfig就很好用了。)
总结一下功能按钮:
上下键:可以在中间的方框当中,在各个服务之间移动;
空格键:可以用来选择你所需要的服务,[*]表示开起启动;
tab键:可以在方框、OK、Cancel之间移动;
[F1]键:可以显示该服务的说明。
例如:
ntsysv 1.3.30.1 - (C) 2000-2001 Red Hat, Inc.
+------------+ 服务 +------------+
| |
| 您想自动启动哪些服务? |
| |
| [ ] NetworkManager |
| [*] acpid |
| [ ] amanda a |
| [ ] amd a |
| [*] anacron a |
| [*] apmd a |
| [*] arptables_jf a |
| [ ] arpwatch a |
| [*] atd a |
| [*] auditd a |
| [ ] auth a |
| [*] autofs a |
| [*] avahi-daemon a |
| [ ] avahi-dnsconfd a |
| [*] bluetooth a |
| [ ] capi a |
| [ ] chargen-dgram a |
| [ ] chargen-stream a |
| [ ] conman a |
| [*] cpuspeed a |
| [*] crond a |
| [*] cups a |
| [ ] cvs a |
| [ ] daytime-dgram a |
| [ ] daytime-stream |
| |
| +------+ +------+ |
| | 确定 | | 取消 | |
| +------+ +------+ |
| |
| |
+--------------------------------+
按 <F1> 可获取关于某项服务的详情。
0 0
- Linux下面开起启动服务命令(chkconfig、ntsysv)!
- Linux下面开起启动服务命令(chkconfig、ntsysv)
- Linux下打开启动服务命令(chkconfig、ntsysv),查看开启了哪些服务
- chkconfig 开机启动服务命令
- Linux下面Chkconfig 命令+应用详解
- Linux下面Chkconfig 命令+应用详解
- chkconfig命令和添加开机启动服务
- chkconfig命令 启动或停止 系统服务
- Linux下chkconfig命令详解即添加服务以及两种方式启动关闭系统服务
- Linux下chkconfig命令详解即添加服务以及两种方式启动关闭系统服务
- Linux下chkconfig命令详解即添加服务以及两种方式启动关闭系统服务
- linux设置开机服务自动启动/关闭自动启动命令 chkconfig
- linux设置开机服务自启动/关闭自启动 chkconfig命令
- linux开机启动服务和chkconfig使用方法
- linux开机启动服务和chkconfig使用方法
- linux开机启动服务和chkconfig使用方法
- linux开机启动服务和chkconfig使用方法
- linux开机启动服务和chkconfig使用方法
- Maven 核心概念——站点生成和报告
- 从埃及分数看迭代加深搜索
- Scripts:显示闪回数据库状态的脚本fdb_status.sql
- 网址
- linux -- xinput 输入设备管理
- Linux下面开起启动服务命令(chkconfig、ntsysv)
- oracle 分割字符串 截取字符串
- Dozer轻松实现对象间属性复制
- 2014百度之星初赛(第二场)——Scenic Popularity
- 排序算法之快速排序的随机化版本
- 网页生成二维码的例子
- 外观(Facade)
- 通过TFTP服务器,往开发板下载程序
- SqlCommand.Parameters.Add()用法