码迷,mamicode.com
首页 > 其他好文 > 详细

Centos开机启动

时间:2017-12-16 15:57:15      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:console   gpo   cti   depend   结果   class   init   usr   pwd   

[root@localhost bin]# pwd
/usr/local/nexus-2.14.0-01/bin
[root@localhost bin]# cp nexus /etc/rc.d/init.d/  
[root@localhost bin]# cd /etc/rc.d/init.d/
[root@localhost init.d]# ls
functions  jexec  netconsole  network  nexus  README
[root@localhost init.d]# chkconfig --add nexus  
[root@localhost init.d]# chkconfig --list | grep nexus 

注意:该输出结果只显示 SysV 服务,并不包含原生 systemd 服务。SysV 配置数据可能被原生 systemd 配置覆盖。 
      如果您想列出 systemd 服务,请执行 systemctl list-unit-files。
      欲查看对特定 target 启用的服务请执行
      systemctl list-dependencies [target]。

nexus              0:关    1:关    2:开    3:开    4:开    5:开    6:关
[root@localhost init.d]# chkconfig nexus on  
[root@localhost init.d]# chkconfig --list | grep nexus 

注意:该输出结果只显示 SysV 服务,并不包含原生 systemd 服务。SysV 配置数据可能被原生 systemd 配置覆盖。 
      如果您想列出 systemd 服务,请执行 systemctl list-unit-files。
      欲查看对特定 target 启用的服务请执行
      systemctl list-dependencies [target]。

nexus              0:关    1:关    2:开    3:开    4:开    5:开    6:关
[root@localhost init.d]# 

 

Centos开机启动

标签:console   gpo   cti   depend   结果   class   init   usr   pwd   

原文地址:http://www.cnblogs.com/wanhua-wu/p/8046574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!