V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
nonesuccess
V2EX  ›  程序员

centos 的 service 脚本除了在 init.d 中,还有可能在哪吗?

  •  
  •   nonesuccess · Dec 24, 2017 · 2914 views
    This topic created in 3045 days ago, the information mentioned may be changed or developed.

    sudo service httpd status,可以正常出结果

    但是 sudo ls -l /etc/init.d

    却只有

    total 48 -rwxr-xr-x 1 root root 2255 Dec 20 21:13 aegis -rwxr-xr-x 1 root root 3004 Dec 20 21:12 agentwatch -rw-r--r--. 1 root root 17500 May 3 2017 functions -rwxr-xr-x. 1 root root 4334 May 3 2017 netconsole -rwxr-xr-x. 1 root root 7293 May 3 2017 network -rw-r--r-- 1 root root 1160 Oct 20 11:07 README

    这是什么情况?

    5 replies    2017-12-25 13:30:09 +08:00
    WordTian
        1
    WordTian  
       Dec 24, 2017 via Android
    centos 几啊?7 就用上 systemd 了
    nonesuccess
        2
    nonesuccess  
    OP
       Dec 24, 2017 via Android
    @WordTian 是 7
    wdlth
        3
    wdlth  
       Dec 24, 2017
    CentOS 7 用的 systemd,在 /usr/lib/systemd,并在 /etc/systemd 做有链接。
    izoabr
        4
    izoabr  
       Dec 25, 2017
    /etc/systemd/system/
    julyclyde
        5
    julyclyde  
       Dec 25, 2017
    /usr/lib/systemd/system/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3211 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 13:42 · PVG 21:42 · LAX 06:42 · JFK 09:42
    ♥ Do have faith in what you're doing.