zoukankan      html  css  js  c++  java
  • centos7 开机启动服务链接说明

    环境:centos7


    创建的开机启动的链接地址:

     /etc/systemd/system/multi-user.target.wants/

    如:

    [root@tiaobanji system]# ll /etc/systemd/system/multi-user.target.wants/
    total 0
    lrwxrwxrwx. 1 root root 38 Feb 28 12:18 auditd.service -> /usr/lib/systemd/system/auditd.service
    lrwxrwxrwx. 1 root root 37 Feb 28 12:18 crond.service -> /usr/lib/systemd/system/crond.service
    lrwxrwxrwx. 1 root root 42 Feb 28 12:18 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service
    lrwxrwxrwx. 1 root root 37 Feb 28 12:18 kdump.service -> /usr/lib/systemd/system/kdump.service
    lrwxrwxrwx. 1 root root 46 Feb 28 12:18 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
    lrwxrwxrwx 1 root root 37 Mar 6 17:37 nginx.service -> /usr/lib/systemd/system/nginx.service
    lrwxrwxrwx. 1 root root 39 Feb 28 12:18 postfix.service -> /usr/lib/systemd/system/postfix.service
    lrwxrwxrwx. 1 root root 40 Feb 28 12:18 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
    lrwxrwxrwx. 1 root root 39 Feb 28 12:18 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service
    lrwxrwxrwx. 1 root root 36 Feb 28 12:18 sshd.service -> /usr/lib/systemd/system/sshd.service
    lrwxrwxrwx. 1 root root 37 Feb 28 12:18 tuned.service -> /usr/lib/systemd/system/tuned.service


    实际的开机服务地址:

    /usr/lib/systemd/system


    添加完实际的开机服务后需要执行:

    systemctl daemon-reload


  • 相关阅读:
    广域网(ppp协议、HDLC协议)
    0120. Triangle (M)
    0589. N-ary Tree Preorder Traversal (E)
    0377. Combination Sum IV (M)
    1074. Number of Submatrices That Sum to Target (H)
    1209. Remove All Adjacent Duplicates in String II (M)
    0509. Fibonacci Number (E)
    0086. Partition List (M)
    0667. Beautiful Arrangement II (M)
    1302. Deepest Leaves Sum (M)
  • 原文地址:https://www.cnblogs.com/qiangyuzhou/p/10484799.html
Copyright © 2011-2022 走看看