Tengine安装
第一步:下載tengine-2.2.3.tar.gz? ?怎么下載我這里就不多說(shuō)了百度很多
第二步:使用xftp鏈接linux(要是小白不會(huì)連百度一下我這里也不多說(shuō)了,當(dāng)然包括虛擬機(jī)和centos安裝我也不多說(shuō)可以查看我之前寫的博客)
第三步:連上linux之后如下圖所示上傳安裝包
第四步:使用Xshelllian進(jìn)入到/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命令可以看見如下圖
仔細(xì)觀察有個(gè)README文件? cat?README
?
1? ./configure
2,安裝編譯gcc? ? ? ? ? ? ??yum install -y gcc
當(dāng)看到如下圖說(shuō)明gcc已經(jīng)安裝完成
接著安裝 ./configure
到此時(shí)是不很疑惑不知道PCRE是的什么東東?不用擔(dān)心我們可以使用命令:yum search PCRE 搜索
如上圖所示告訴你PCRE是什么東東
我們此時(shí)需要安裝開發(fā)版pcre-devel? ?相關(guān)版本不需要選擇,linux會(huì)自動(dòng)幫你選擇安裝相應(yīng)的版本(64位和32位自動(dòng)匹配)
yum install pcre-devel
下載包:
此時(shí)在執(zhí)行? ?./configure
yum search OpenSSL
安裝OpenSSL:? yum install openssl-devel
安裝OpenSSL完成? ? ? ? ? ? ? ?執(zhí)行? ? ? ./configure
此時(shí)? ll一下可以看見多了Makefile
此時(shí)我們看下這個(gè)Makefile時(shí)做什么的? 看下這個(gè)文件 cat Makefile
通過(guò)看Makefile文件我們可以發(fā)現(xiàn)有個(gè)objs目錄
我們 ll 命令看下
cd 到 objs目錄下? 看下
我們看見一個(gè)Makefile文件我們看下這個(gè)文件
more Makefile
通過(guò)查看Makefile文件我們告訴我們這些文件安裝的目錄
?
找到 install
?
第2步 :make? 進(jìn)行編譯? ?(前面做了這么多都是編譯環(huán)境的安裝)
第3步:make install? ?
下面就是make install執(zhí)行的代碼有興趣可以閱讀以下
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? 那么我們就看下這個(gè) nginx
此時(shí)安裝成功了我們這么啟動(dòng)tengine
如果瀏覽器請(qǐng)求不通失敗
需要檢查centos7防火墻是不是打開
如何關(guān)閉防火墻參參考:https://blog.csdn.net/ywl470812087/article/details/90109759
瀏覽器請(qǐng)求如果看見這個(gè)? Welcome? to? ?tegine 就表示已經(jīng)安裝成功并且啟動(dòng)? ? ?默認(rèn)端口80
此時(shí)你很疑惑這個(gè)頁(yè)面是如何展示
如下圖:
?
此時(shí)你就會(huì)看見index.html? ? 我們vi一下
總結(jié)
- 上一篇: S5PV210开发 -- Linux d
- 下一篇: 2022年中国医疗信息化研究报告