Ubuntu安裝nginx-1.6.2

1、在執行完./configure 和make install 後出現

test -d ‘/usr/local/nginx/logs‘         || mkdir -p ‘/usr/local/nginx/logs‘
test -d ‘/usr/local/nginx/logs‘ ||         mkdir -p ‘/usr/local/nginx/logs‘
test -d ‘/usr/local/nginx/html‘         || cp -R html ‘/usr/local/nginx‘
test -d ‘/usr/local/nginx/logs‘ ||         mkdir -p ‘/usr/local/nginx/logs‘
make[1]:正在离开目录 `/home/hadoop/nginx-1.6.2‘
2、配置玩環境變量後,要驗證下安裝nginx是否安裝成功時候出現錯誤提示。

環境變量配置:

export NGINX_HOME=/xx/xx/ nginx-1.6.2 

export PATH=$PATH:$NGINX_HOME/sbin

3、oop:~/nginx-1.6.2$ nginx -v
程序 ‘nginx‘ 已包含在下列软件包中:
 * nginx-core
 * nginx-extras
 * nginx-full
 * nginx-light
 * nginx-naxsi
请尝试:sudo apt-get install <选定的软件包>

4、分別 安裝上述 幾個包:sudo apt-get install  nginx-core  等5個包

5、doop:~/nginx-1.6.2$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)   安裝成功。
後記: 我在centos 下一直安裝dao ./configure 的時候一直出現

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option. 錯誤提示。還沒有解決

时间: 2024-08-28 18:33:45

Ubuntu安裝nginx-1.6.2的相关文章

Ubuntu 安裝 嘸蝦米 輸入法

O S : 14.04.1-Ubuntu 加入fcitx開發團隊的repository: sudo add-apt-repository ppa:fcitx-team/nightly sudo apt-get update 安裝fcitx與嘸蝦米table: sudo apt-get install fcitx fcitx-m17n sudo apt-get install fcitx-table-boshiamy 在英文環境下,fcitx找不到嘸蝦米輸入法的解決方法,ctrl + alt +

Ubuntu 安裝思源字體

主要参考这个 http://ingramchen.io/blog/2014/07/ubuntu-noto-font.html 修正文章中无效的字体名称设置. 首先下载谷歌的思源黑体,思源黑体主页: http://www.google.com/get/noto/ 官方安装方法链接: http://www.google.com/get/noto/help/install/ 下面的客製流程適用於 Ubuntu 14.04,其他 Linux 應該也能通用,先下載思源字型,解開 zip,將 CJK 字型放

ubuntu 安裝chromium及flash插件腳本

#!/bin/bash#install chromium brower and flash pluginecho "install chromium brower and flash plugin"sudo apt-get install chromium-browser -ysudo apt-get install pepperflashplugin-nonfree -ysudo update-pepperflashplugin-nonfree --install

ubuntu 安裝sublime text 2 自動腳本

#!/bin/bash#install sublimeecho "install sublime 2"sudo apt-get install axelaxel http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2\ x64.tar.bz2tar jxvf Sublime\ Text\ 2.0.2\ x64.tar.bz2sudo rm Sublime\ Text\ 2.0.2\ x64.tar.bz2sudo mv Subli

ubuntu 安裝openssh 腳本

#!/bin/bashsudo apt-get install openssh-server -ysudo sed -i 's/without-password/yes/g' /etc/ssh/sshd_config 卸載的腳本 #!/bin/bashsudo stop sshdsudo apt-get remove openssh-server --purge -y

linux下nginx安裝

1.yum安裝 yum安裝  http://nginx.org/packages/centos/7/noarch/RPMS/ 第一步: 安裝命令: yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-nr-agent-2.0.0-12.el7.ngx.noarch.rpm 檢測是否安裝成功 yum repolist enabled | grep 'nginx*' 第二步: 安裝nginx   yum -y i

Ubuntu 12.04不能在華碩F81se系列電腦上安裝解决辦法

本人華碩F81se系列的電腦,剛開始是裝的ubuntu 10.04的系統,周末閑的無聊,就想把系統換成ubuntu 12.04的,從ubuntu官網上下載了12.04的安裝包,下了個usb installer,把系統燒到u盤以後,在u盤裏run了下,總是出現下面的錯誤: Cannot allocate resource for EISA slot 1 Cannot allocate resource for EISA slot 2 Cannot allocate resource for EIS

沈逸老师ubuntu速学笔记(2)-- ubuntu16.04下 apache2.4和php7结合编译安装,并安裝PDOmysql扩展

1.编译安装apache2.4.20 1 第一步: ./configure --prefix=/usr/local/httpd --enable-so 2 第二步: make 3 第三步: sudo make install 2.编译安装libiconv    到这去下载,并编译安装    http://www.gnu.org/software/libiconv/#TOCdownloading 1 第一步:./configure --prefix=/usr/local 2 第二步: make 3

安裝 14.04.1 Ubuntu 到 Lenovo thinkpad t460p

在 Lenovo Thinkpad T460p 安裝 ubuntu, BIOS 需要做一些設定, 沒設定的現象:不斷地停在 usb disk 設定 可以 使用 usb disk install 了!