linux安裝 tengine 時會出現的軟件依賴問題

  小白今天安裝了tengine 服務,其實很簡單的事,我卻花了很長時間才安裝好,下面記錄一下具體安裝的步奏:

  我把安裝目錄放在、/home/tengine下;


所以先建一個目錄:mkdir /home/tengine

然後下載tengine包,注意安裝tengine需要有gcc環境,

那就先安裝gcc環境:yum -y install gcc gcc-c++ kernel-devel

使用tar 命令將下載的包解壓,解壓後cd到解壓後得到的目錄下

然後執行:./configure --prefix=/home/tengine

.

.

.這時會提示軟件依賴問題:


./configure:error: the HTTP SSL module requires OpenSSL library

   原因:安裝http_ssl_module模塊需要openssl library

   解決:yum install openssl-devel

./configure:error: the HTTP rewrite module requires the PCRE library.

   原因:安裝http_rewrite_module模塊需要先安裝PCRE開發包

   解決:yum install pcre-devel

 注意要安裝openssl-devel和pcre-devel,,我之前直接安裝openssl和pcre一直出錯。。

把依賴問題解決後就可以編譯安裝了

執行:make

執行:make install

安裝好後還要是設置一下路徑,

打開 /etc/profile :vim /etc/profile,

 在 export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL 這行上面添加

PATH=$PATH:/home/tengine/sbin

然後就可以啓動 nginx了


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章