zoukankan      html  css  js  c++  java
  • Centos开机启动

    [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]# 
  • 相关阅读:
    redis未授权访问简单总结
    CORS跨域资源共享漏洞初探
    Mysql UDF提权方法
    hacknos-player靶机渗透
    深入理解Java虚拟机-类加载连接和初始化解析
    Dnslog盲注
    让服务器使用密钥
    自动备份站点
    自动放行nginx后台访问ip
    mysql增备
  • 原文地址:https://www.cnblogs.com/wanhua-wu/p/8046574.html
Copyright © 2011-2022 走看看