首页 > 其他 > 详细

Centos开机启动

时间:2017-12-16 15:46:46      阅读:231      评论:0      收藏:0      [点我收藏+]
[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开机启动

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!