日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Tengine安装

發布時間:2025/3/15 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Tengine安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

第一步:下載tengine-2.2.3.tar.gz? ?怎么下載我這里就不多說了百度很多

第二步:使用xftp鏈接linux(要是小白不會連百度一下我這里也不多說了,當然包括虛擬機和centos安裝我也不多說可以查看我之前寫的博客)

第三步:連上linux之后如下圖所示上傳安裝包

第四步:使用Xshelllian進入到/usr/local/software/? ?目錄下安裝? ?

? 安裝指定目錄命令:tar -zxvf tengine-2.2.3.tar.gz -C /usr/local/hadoop/??

安裝成功之后如圖所示

第五步:cd? /hadoop/

如上圖所示:可以看見解壓成功和的tengine-2.2.3? ? ? ? ? ? cd 到 tengine-2.2.3目錄ll命令可以看見如下圖

仔細觀察有個README文件? cat?README

?

1? ./configure

2,安裝編譯gcc? ? ? ? ? ? ??yum install -y gcc

當看到如下圖說明gcc已經安裝完成

接著安裝 ./configure

到此時是不很疑惑不知道PCRE是的什么東東?不用擔心我們可以使用命令:yum search PCRE 搜索

如上圖所示告訴你PCRE是什么東東

我們此時需要安裝開發版pcre-devel? ?相關版本不需要選擇,linux會自動幫你選擇安裝相應的版本(64位和32位自動匹配)

yum install pcre-devel

下載包:

此時在執行? ?./configure

yum search OpenSSL

安裝OpenSSL:? yum install openssl-devel

安裝OpenSSL完成? ? ? ? ? ? ? ?執行? ? ? ./configure

此時? ll一下可以看見多了Makefile

此時我們看下這個Makefile時做什么的? 看下這個文件 cat Makefile

通過看Makefile文件我們可以發現有個objs目錄

我們 ll 命令看下

cd 到 objs目錄下? 看下

我們看見一個Makefile文件我們看下這個文件

more Makefile

通過查看Makefile文件我們告訴我們這些文件安裝的目錄

?

找到 install

?

第2步 :make? 進行編譯? ?(前面做了這么多都是編譯環境的安裝)

第3步:make install? ?

下面就是make install執行的代碼有興趣可以閱讀以下

make -f objs/Makefile install
make[1]: Entering directory `/usr/local/hadoop/tengine-2.2.3'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin' ?? ??? ?|| mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx' ?? ??? ?|| mv '/usr/local/nginx/sbin/nginx' ?? ??? ??? ?'/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf' ?? ??? ?|| mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' ?? ??? ?|| cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' ?? ??? ?|| cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params ?? ??? ?'/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf' ?? ??? ?|| cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' ?? ??? ?|| cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params ?? ??? ?'/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' ?? ??? ?|| cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params ?? ??? ?'/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' ?? ??? ?|| cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
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 -f '/usr/local/nginx/conf/browsers' ?? ??? ?|| cp conf/browsers '/usr/local/nginx/conf'
cp conf/browsers '/usr/local/nginx/conf/browsers'
test -d '/usr/local/nginx/logs' || ?? ??? ?mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/modules/' ?? ??? ?|| mkdir -p '/usr/local/nginx/modules/'
test -f '/usr/local/nginx/conf/module_stubs' ?? ??? ?|| cp objs/module_stubs '/usr/local/nginx/conf'
cp objs/module_stubs '/usr/local/nginx/conf/module_stubs'
test -d '/usr/local/nginx/sbin' || ?? ??? ?mkdir -p '/usr/local/nginx/sbin'
cp objs/dso_tool '/usr/local/nginx/sbin/dso_tool'
chmod 0755 '/usr/local/nginx/sbin/dso_tool'
test -d '/usr/local/nginx/include' ?? ??? ?|| mkdir -p '/usr/local/nginx/include'
test -f 'src/core/nginx.h' && cp 'src/core/nginx.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_config.h' && cp 'src/core/ngx_config.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_core.h' && cp 'src/core/ngx_core.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_log.h' && cp 'src/core/ngx_log.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_palloc.h' && cp 'src/core/ngx_palloc.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_array.h' && cp 'src/core/ngx_array.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_list.h' && cp 'src/core/ngx_list.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_hash.h' && cp 'src/core/ngx_hash.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_buf.h' && cp 'src/core/ngx_buf.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_queue.h' && cp 'src/core/ngx_queue.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_string.h' && cp 'src/core/ngx_string.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_parse.h' && cp 'src/core/ngx_parse.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_inet.h' && cp 'src/core/ngx_inet.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_file.h' && cp 'src/core/ngx_file.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crc.h' && cp 'src/core/ngx_crc.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crc32.h' && cp 'src/core/ngx_crc32.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_murmurhash.h' && cp 'src/core/ngx_murmurhash.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_md5.h' && cp 'src/core/ngx_md5.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_sha1.h' && cp 'src/core/ngx_sha1.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_rbtree.h' && cp 'src/core/ngx_rbtree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_trie.h' && cp 'src/core/ngx_trie.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_segment_tree.h' && cp 'src/core/ngx_segment_tree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_radix_tree.h' && cp 'src/core/ngx_radix_tree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_slab.h' && cp 'src/core/ngx_slab.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_times.h' && cp 'src/core/ngx_times.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_shmtx.h' && cp 'src/core/ngx_shmtx.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_connection.h' && cp 'src/core/ngx_connection.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_cycle.h' && cp 'src/core/ngx_cycle.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_conf_file.h' && cp 'src/core/ngx_conf_file.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_resolver.h' && cp 'src/core/ngx_resolver.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_open_file_cache.h' && cp 'src/core/ngx_open_file_cache.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crypt.h' && cp 'src/core/ngx_crypt.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_proxy_protocol.h' && cp 'src/core/ngx_proxy_protocol.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_parse_time.h' && cp 'src/core/ngx_parse_time.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_syslog.h' && cp 'src/core/ngx_syslog.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event.h' && cp 'src/event/ngx_event.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_timer.h' && cp 'src/event/ngx_event_timer.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_posted.h' && cp 'src/event/ngx_event_posted.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_connect.h' && cp 'src/event/ngx_event_connect.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_pipe.h' && cp 'src/event/ngx_event_pipe.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_time.h' && cp 'src/os/unix/ngx_time.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_errno.h' && cp 'src/os/unix/ngx_errno.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_alloc.h' && cp 'src/os/unix/ngx_alloc.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_files.h' && cp 'src/os/unix/ngx_files.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_channel.h' && cp 'src/os/unix/ngx_channel.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_shmem.h' && cp 'src/os/unix/ngx_shmem.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_process.h' && cp 'src/os/unix/ngx_process.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_setaffinity.h' && cp 'src/os/unix/ngx_setaffinity.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_setproctitle.h' && cp 'src/os/unix/ngx_setproctitle.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_atomic.h' && cp 'src/os/unix/ngx_atomic.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_gcc_atomic_x86.h' && cp 'src/os/unix/ngx_gcc_atomic_x86.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_thread.h' && cp 'src/os/unix/ngx_thread.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_socket.h' && cp 'src/os/unix/ngx_socket.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_os.h' && cp 'src/os/unix/ngx_os.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_user.h' && cp 'src/os/unix/ngx_user.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_pipe.h' && cp 'src/os/unix/ngx_pipe.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_sysinfo.h' && cp 'src/os/unix/ngx_sysinfo.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_process_cycle.h' && cp 'src/os/unix/ngx_process_cycle.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_linux_config.h' && cp 'src/os/unix/ngx_linux_config.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_linux.h' && cp 'src/os/unix/ngx_linux.h' '/usr/local/nginx/include'
test -f 'src/proc/ngx_proc.h' && cp 'src/proc/ngx_proc.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_openssl.h' && cp 'src/event/ngx_event_openssl.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_regex.h' && cp 'src/core/ngx_regex.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http.h' && cp 'src/http/ngx_http.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_request.h' && cp 'src/http/ngx_http_request.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_config.h' && cp 'src/http/ngx_http_config.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_core_module.h' && cp 'src/http/ngx_http_core_module.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_cache.h' && cp 'src/http/ngx_http_cache.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_variables.h' && cp 'src/http/ngx_http_variables.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_script.h' && cp 'src/http/ngx_http_script.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_upstream.h' && cp 'src/http/ngx_http_upstream.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_upstream_round_robin.h' && cp 'src/http/ngx_http_upstream_round_robin.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_ssi_filter_module.h' && cp 'src/http/modules/ngx_http_ssi_filter_module.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_ssl_module.h' && cp 'src/http/modules/ngx_http_ssl_module.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_reqstat.h' && cp 'src/http/modules/ngx_http_reqstat.h' '/usr/local/nginx/include'
test -f 'objs/ngx_auto_headers.h' ?&& cp 'objs/ngx_auto_headers.h' '/usr/local/nginx/include'
test -f 'objs/ngx_auto_config.h' && cp 'objs/ngx_auto_config.h' '/usr/local/nginx/include'
make[1]: Leaving directory `/usr/local/hadoop/tengine-2.2.3'

?

做了這么多我們一直都看見nginx? 那么我們就看下這個 nginx

此時安裝成功了我們這么啟動tengine

如果瀏覽器請求不通失敗

需要檢查centos7防火墻是不是打開

如何關閉防火墻參參考:https://blog.csdn.net/ywl470812087/article/details/90109759

瀏覽器請求如果看見這個? Welcome? to? ?tegine 就表示已經安裝成功并且啟動? ? ?默認端口80

此時你很疑惑這個頁面是如何展示

如下圖:

?

此時你就會看見index.html? ? 我們vi一下

總結

以上是生活随笔為你收集整理的Tengine安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。