gpt4 book ai didi

django - sudo apache2 stop 不起作用

转载 作者:行者123 更新时间:2023-12-04 19:04:24 25 4
gpt4 key购买 nike

不知道为什么,但是当我运行时:

ubuntu@ip-10-46-206-16:/etc/init.d$ sudo apache2 stop
Usage: apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
-X : debug mode (only one worker, do not detach)

它似乎没有停止服务器。我仍在尝试 ping ip 并且它正在返回默认页面。有什么原因吗?

最佳答案

尝试:

 sudo service apache2 stop

看这里:
  • https://help.ubuntu.com/community/ApacheMySQLPHP

  • 较旧的方法是:
    sudo /etc/init.d/apache2 stop

    请注意,当您执行 sudo apache2 stop ,您正在运行 apache2来自您的 PATH,而不是来自当前文件夹(通常 . 不在 PATH 中)。试试 sudo ./apache2 stop为了那个原因。

    看这里:
  • http://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/
  • 关于django - sudo apache2 stop 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9456117/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com