我有一个安装了WordPress的不同的流浪汉盒子。
我刚刚使用ssh,但是不知道如何重启Apache。
下面是我尝试过的(以及错误):
$ sudo restart apache2
restart: Unknown job: apache2
$ sudo service apache2 restart
apache2: unrecognized service
apachectl restart
The program 'apachectl' is currently not installed. To run 'apachectl' please ask your administrator to install the package 'apache2'如果有帮助,uname给出了:
$ uname -a
Linux vvv 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux有什么建议吗?
发布于 2016-08-01 11:57:48
Varying Vagrant Vagrants不使用apache作为web服务器。在自述文件中,未将Apache列为已安装。它使用nginx作为web服务器,而不是apache。
在provision script中,您可以找到以下两行:
# nginx is installed as the default web server
nginx这就是为什么你找不到阿帕奇。如果你想重启nginx,你可以试试:
sudo service nginx restarthttps://stackoverflow.com/questions/38687198
复制相似问题