我在Debian 7上安装了Nginx 1.8 (从源代码编译):
cd /opt/
sudo wget http://nginx.org/download/nginx-1.8.0.tar.gz
sudo wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz
sudo tar -zxvf nginx-1.8.0.tar.gz
sudo tar -zxzf ngx_cache_purge-2.3.tar.gz
cd /opt/nginx-1.8.0/
sudo ./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --with-ipv6 --add-module=/tmp/ngx_cache_purge-2.3
sudo make && make install
sudo adduser --system --no-create-home --disabled-login --disabled-password --group nginx
sudo wget -O init-deb.sh http://www.linode.com/docs/assets/1538-init-deb.sh
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults 然后我使用以下命令启动nginx:
sudo /etc/init.d/nginx start直到现在,一切都很好。
问题是,当我尝试安装HHVM时,它不工作:
sudo wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
sudo echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm libgmp-dev libmemcached-dev
sudo update-rc.d hhvm defaults当我最终运行的时候:
sudo /usr/share/hhvm/install_fastcgi.sh我得到以下错误:
Checking if Nginx is installed
Nginx not found有任何想法,我可以安装HHVM与Nginx编译从源代码?
发布于 2015-04-28 06:38:34
您将不得不阅读脚本并手动应用其补丁。它是硬编码的,可以与发行版提供的nginx一起使用,并且假设它安装在这个位置--因为我们为Debian提供的deb无论如何都会在nginx系统配置中保留一个特定的脚本。手动构建的nginx位于不同的位置;脚本将无法知道在哪里找到它!
Here's the source for the install_fastcgi.sh --相关的部分是它的inserts a line after server_name to include hhvm.conf。你可以在here上找到hhvm.conf,或者它可能已经在你的系统上了,网址是/etc/nginx/hhvm.conf。
顺便说一句,脚本真的没那么复杂。通常,找出故障原因的一个好方法是浏览一下,看看它在做什么:)
https://stackoverflow.com/questions/29882487
复制相似问题