日B视频 亚洲,啪啪啪网站一区二区,91色情精品久久,日日噜狠狠色综合久,超碰人妻少妇97在线,999青青视频,亚洲一区二卡,让本一区二区视频,日韩网站推荐

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

干貨:Centos 6.5部署nginx和php環(huán)境部署

如意 ? 來源:百家號 ? 作者: 互聯(lián)網(wǎng)資深ops專家 ? 2020-06-28 10:00 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

1.IP地址:192.168.1.241

下載這次部署需要的更新包,并上傳到/usr/local/src目錄:[root@binds src]# ll

total 17576

-rw-r--r-- 1 root root 730589 Jul 14 13:29 nginx-1.2.8.tar.gz

-rw-r--r-- 1 root root 1790055 Jul 29 10:39 pcre-8.32.tar.gz

-rw-r--r-- 1 root root 14902187 Jul 28 18:00 php-5.3.22.tar.gz

-rw-r--r-- 1 root root 560351 Jul 29 10:41 zlib-1.2.7.tar.gz

安裝nginx必須安裝pcre-8.32.tar.gz

[root@binds pcre-8.32]# tar zxvf pcre-8.32.tar.gz

[root@binds pcre-8.32]# cd pcre-8.32

[root@binds pcre-8.32]# 。/configure

[root@binds pcre-8.32]# make && make install

make[3]: Leaving directory `/usr/local/src/pcre-8.32‘

make[2]: Leaving directory `/usr/local/src/pcre-8.32’

make[1]: Leaving directory `/usr/local/src/pcre-8.32‘

安裝結(jié)束

接下來安裝

[root@binds src]# tar zxvf zlib-1.2.7.tar.gz

[root@binds src]# cd zlib-1.2.7

[root@binds zlib-1.2.7]# 。/configure

出現(xiàn)錯誤Looking for a four-byte integer type.。。 Found. 無關(guān)緊要

[root@localhost zlib-1.2.7]# make && make install

chmod 644 /usr/local/lib/libz.a

cp libz.so.1.2.7 /usr/local/lib

chmod 755 /usr/local/lib/libz.so.1.2.7

cp zlib.3 /usr/local/share/man/man3

chmod 644 /usr/local/share/man/man3/zlib.3

cp zlib.pc /usr/local/lib/pkgconfig

chmod 644 /usr/local/lib/pkgconfig/zlib.pc

cp zlib.h zconf.h /usr/local/include

chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h

安裝完成后,安裝nginx

[root@binds src]# tar zxvf nginx-1.2.8.tar.gz

[root@binds src]# cd nginx-1.2.8

。/configure --prefix=/usr/local/nginx-1.2.8 --with-http_sub_module --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module

Configuration summary

+ using system PCRE library

+ using system OpenSSL library

+ md5: using OpenSSL library

+ sha1: using OpenSSL library

+ using system zlib library

nginx path prefix: “/usr/local/nginx-1.2.8”

nginx binary file: “/usr/local/nginx-1.2.8/sbin/nginx”

nginx configuration prefix: “/usr/local/nginx-1.2.8/conf”

nginx configuration file: “/usr/local/nginx-1.2.8/conf/nginx.conf”

nginx pid file: “/usr/local/nginx-1.2.8/logs/nginx.pid”

nginx error log file: “/usr/local/nginx-1.2.8/logs/error.log”

nginx http access log file: “/usr/local/nginx-1.2.8/logs/access.log”

nginx http client request body temporary files: “client_body_temp”

nginx http proxy temporary files: “proxy_temp”

nginx http fastcgi temporary files: “fastcgi_temp”

nginx http uwsgi temporary files: “uwsgi_temp”

nginx http scgi temporary files: “scgi_temp”

[root@binds nginx-1.2.8]# make && make install

cp conf/nginx.conf ’/usr/local/nginx-1.2.8/conf/nginx.conf.default‘

test -d ’/usr/local/nginx-1.2.8/logs‘ || mkdir -p ’/usr/local/nginx-1.2.8/logs‘

test -d ’/usr/local/nginx-1.2.8/logs‘ || mkdir -p ’/usr/local/nginx-1.2.8/logs‘

test -d ’/usr/local/nginx-1.2.8/html‘ || cp -R html ’/usr/local/nginx-1.2.8‘

make[1]: Leaving directory `/usr/local/src/nginx-1.2.8’

安裝完成

打補?。汉竺鏁a全

root@binds nginx-1.2.8]# service iptables stop

iptables: Setting chains to policy ACCEPT: filter [ OK ]

iptables: Flushing firewall rules: [ OK ]

iptables: Unloading modules: [ OK ]

[root@binds nginx-1.2.8]#

[root@localhost nginx-1.2.8]# /usr/local/nginx-1.2.8/sbin/nginx

/usr/local/nginx-1.2.8/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

報錯解決方法:

創(chuàng)建軟連接:[root@binds share]#測試下:ln -s /usr/local/lib/libpcre.so.1 /lib64/

接下來繼續(xù)安裝php

mkdir -p /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626

[root@binds share]# cd /usr/local/src/

[root@binds src]# ll

total 17592

drwxr-xr-x 9 1001 1001 4096 Aug 10 10:58 nginx-1.2.8

-rw-r--r-- 1 root root 730589 Jul 14 13:29 nginx-1.2.8.tar.gz

drwxr-xr-x 9 1169 1169 12288 Aug 10 10:34 pcre-8.32

-rw-r--r-- 1 root root 1790055 Jul 29 10:39 pcre-8.32.tar.gz

-rw-r--r-- 1 root root 14902187 Jul 28 18:00 php-5.3.22.tar.gz

drwxr-xr-x 14 501 games 4096 Aug 10 10:52 zlib-1.2.7

-rw-r--r-- 1 root root 560351 Jul 29 10:41 zlib-1.2.7.tar.gz

[root@binds src]# tar zxvf php-5.3.22.tar.gz

[root@binds php-5.3.22]# yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gd curl curl-devel mysql mysql-devel mhash libiconv mcrypt

。/configure “--prefix=/usr/local/php” “--enable-fpm” “--with-config-file-path=/home/server_config/php” “--with-mysql=/usr/local/mysql” “--with-mysqli=/usr/local/mysql/bin/mysql_config” “--with-pdo-mysql=/usr/local/mysql” “--with-iconv-dir” “--with-freetype-dir” “--with-jpeg-dir” “--with-png-dir” “--with-gd” “--with-zlib” “--with-libxml-dir” “--with-curl” “--with-curlwrappers” “--with-openssl” “--with-mhash” “--with-xmlrpc” “--with-mcrypt” “--with-ldap” “--with-ldap-sasl” “--enable-xml” “--enable-safe-mode” “--enable-bcmath” “--enable-shmop” “--enable-sysvsem” “--enable-inline-optimization” “--enable-mbregex” “--enable-mbstring” “--enable-gd-native-ttf” “--enable-ftp” “--enable-pcntl” “--enable-sockets” “--enable-fastcgi”

低版本:。/configure --prefix=/usr/local/php \

--with-config-file-path=/home/server_config/php\

--with-mysql=/usr/local/mysql/ \

--with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local/ \

--with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/ \

--enable-xml --disable-rpath --enable-discard-path --enable-bcmath \

--enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers \

--enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring \

--with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl \

--enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap

--enable-safe-mode

可能報錯:

checking for LDAP Cyrus SASL support.。。 yes

configure: error: Cannot find ldap libraries in /usr/lib.

執(zhí)行:cp -frp /usr/lib64/libldap* /usr/lib

checking for mcrypt support.。。 yes

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

上傳libmcrypt-2.5.8.tar.gz

# tar zxvf libmcrypt-2.5.8.tar.gz

# cd libmcrypt-2.5.8

# 。/configure

# make

# make install

checking for specified location of the MySQL UNIX socket.。。 no configure: error: Cannot find libmysq

執(zhí)行:

cp -rp /usr/lib64/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so

[root@localhost php-5.3.22]# make && make install

/usr/bin/ld: cannot find -lltdl

collect2: ld returned 1 exit status

make: *** [libphp5.la] Error 1

如果需要mcrypt,那么需要安裝libltdl

libltdl在libmcrypt軟件包中就有,具體過程:

#cd /software/libmcrypt-2.5.8/libltdl

#./configure –enable-ltdl-install

[root@localhost php-5.3.22]# cp php.

php.gif php.ini-development php.ini-production

[root@localhost php-5.3.22]# cp php.ini-development /usr/local/php-5.3.22/lib/

[root@localhost php-5.3.22]# cp php.ini-production /usr/local/php-5.3.22/lib/

[root@localhost php-5.3.22]# cd /usr/local/php-5.3.22/

[root@localhost php-5.3.22]# ll

total 32

drwxr-xr-x 2 root root 4096 Aug 11 18:16 bin

drwxr-xr-x 2 root root 4096 Aug 11 18:16 etc

drwxr-xr-x 3 root root 4096 Aug 11 18:16 include

drwxr-xr-x 3 root root 4096 Aug 11 18:18 lib

drwxr-xr-x 4 root root 4096 Aug 11 18:15 man

drwxr-xr-x 2 root root 4096 Aug 11 18:15 sbin

drwxr-xr-x 3 root root 4096 Aug 11 18:15 share

drwxr-xr-x 4 root root 4096 Aug 11 18:15 var

[root@localhost php-5.3.22]# cd etc/

[root@localhost etc]# ll

total 28

-rw-r--r-- 1 root root 1222 Aug 11 18:16 pear.conf

-rw-r--r-- 1 root root 21680 Aug 11 18:15 php-fpm.conf.default

[root@localhost etc]# mv php-fpm.conf.default php-fpm.conf

[root@localhost etc]# /usr/local/php-5.3.22/sbin/php-fpm

第三方php apc apcu的安裝

上傳APC-3.1.9.tgz apcu-4.0.6.tgz到服務(wù)器

tar zxvf APC-3.1.9.tgz

[root@localhost APC-3.1.9]# /usr/local/php/bin/phpize

[root@localhost src]# tar zxvf apcu-4.0.6.tgz

[root@localhost apcu-4.0.6]# /usr/local/php/bin/phpize

。/configure --enable-apcu --with-php-config=/usr/local/php/bin/php-config

。/configure --prefix=/usr/local/unixODBC-2.3.0 --includedir=/usr/local/include --libdir=/usr/lib -bindir=/usr/bin --sysconfdir=/etc

安裝imagick-3.1.0RC2 先yum -y install ImageMagick-devel

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學習之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • PHP
    PHP
    +關(guān)注

    關(guān)注

    0

    文章

    463

    瀏覽量

    28821
  • nginx
    +關(guān)注

    關(guān)注

    0

    文章

    194

    瀏覽量

    13223
  • CentOS
    +關(guān)注

    關(guān)注

    0

    文章

    85

    瀏覽量

    14841
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點推薦

    matlab的算法部署在simulink中

    有沒有哪位大佬能提供一下思路,遇到一個問題matlab得不到神經(jīng)網(wǎng)絡(luò)fitcnet模型的權(quán)重參數(shù),所以simulink沒辦法部署,那遇到這種情況該如何處理
    發(fā)表于 12-08 15:27

    RA8P1部署ai模型指南:從訓練模型到部署?|?本周六

    部署人臉檢測模型。11月22日(本周六),900,我們將就嵌入式AI,帶來免費線上培訓,手把手帶你掌握包括本文但不限于本文的更多技術(shù)干貨,還有雙核通信培訓哦!帶上
    的頭像 發(fā)表于 11-20 18:06 ?2449次閱讀
    RA8P1<b class='flag-5'>部署</b>ai模型指南:從訓練模型到<b class='flag-5'>部署</b>?|?本周六

    如何快速在云服務(wù)器上部署Web環(huán)境?

    如何快速在云服務(wù)器上部署Web環(huán)境
    的頭像 發(fā)表于 10-14 14:16 ?898次閱讀

    米爾RK3576部署端側(cè)多模態(tài)多輪對話,6TOPS算力驅(qū)動30億參數(shù)LLM

    流程 2.1 依賴環(huán)境 2.2 一鍵編譯 2.3 端側(cè)部署步驟 三、效果展示:圖文多輪問答 四、二次開發(fā)與拓展方向 五、結(jié)論與未來發(fā)展方向 一、引言1.1 什么是多輪對話?多輪對
    發(fā)表于 09-05 17:25

    求助,關(guān)于nanoEdgeAI部署在keil5出現(xiàn)的問題求解

    為什么用NanoEdgeAI Studio訓練好的庫用keil5部署到我的STM32H750的單片機上時它生成的neai_classification函數(shù)輸入的值是變的但輸出值是定值0.268941和0.731059換模型也是這樣
    發(fā)表于 08-13 07:32

    CentOS 7下MySQL 8雙主熱備高可用架構(gòu)全解

    Centos7部署MySQL8+keepalived雙主熱備(含Keepalived配置與GTID同步優(yōu)化方案) 架構(gòu)拓撲原理 GTID同步 VIP 192.168.1.100 MySQL主節(jié)點1
    的頭像 發(fā)表于 08-12 17:08 ?1014次閱讀

    求助,關(guān)于K230部署yolov8時遇到問題求解

    使用yolov8訓練出來了一個十個類別的模型并且按照要求轉(zhuǎn)換成了.kmodel模型,在部署到K230時 使用yolo大作戰(zhàn)里面的代碼提示我list out of range但是我看了我的.yaml
    發(fā)表于 08-12 07:26

    Ansible Playbook自動化部署Nginx集群指南

    面對日益猖獗的DDoS攻擊,手動部署防護已經(jīng)out了!今天教你用Ansible一鍵部署具備DDoS防御能力的Nginx集群,讓攻擊者哭著回家!
    的頭像 發(fā)表于 08-06 17:54 ?938次閱讀

    AICube生成部署文件失敗的原因?怎么解決?

    我按照網(wǎng)上的方法安裝了dotnet,和AICube,并且我是安裝在非中文路徑,但是嘗試了一天了,都不能成功的生成部署文件,我使用軟件自帶的樣例,但是就是不能生成部署文件 期待結(jié)果和實際結(jié)果 環(huán)境路徑 ! image.png
    發(fā)表于 08-05 06:26

    什么是 K8S,如何使用 K8S

    和回滾。 Service:為 Pod 提供穩(wěn)定的訪問入口,支持負載均衡。 Namespace:邏輯隔離機制,用于劃分資源域。 二、如何使用 K8S 安裝與部署 環(huán)境要求: 操作系統(tǒng):CentOS
    發(fā)表于 06-25 06:45

    Nginx配置終極指南

    Nginx 是開源、高性能、高可靠的 Web 和反向代理服務(wù)器,而且支持熱部署,幾乎可以做到 7 * 24 小時不間斷運行,即使運行幾個月也不需要重新啟動,還能在不間斷服務(wù)的情況下對軟件版本進行熱
    的頭像 發(fā)表于 06-18 15:56 ?1238次閱讀
    <b class='flag-5'>Nginx</b>配置終極指南

    云原生環(huán)境Nginx的故障排查思路

    本文聚焦于云原生環(huán)境Nginx的故障排查思路。隨著云原生技術(shù)的廣泛應用,Nginx作為常用的高性能Web服務(wù)器和反向代理服務(wù)器,在容器化和編排的環(huán)境中面臨著新的故障場景和挑戰(zhàn)。
    的頭像 發(fā)表于 06-17 13:53 ?1188次閱讀
    云原生<b class='flag-5'>環(huán)境</b>里<b class='flag-5'>Nginx</b>的故障排查思路

    如何使用Docker部署大模型

    隨著深度學習和大模型的快速發(fā)展,如何高效地部署這些模型成為了一個重要的挑戰(zhàn)。Docker 作為一種輕量級的容器化技術(shù),能夠?qū)⒛P图捌湟蕾?b class='flag-5'>環(huán)境打包成一個可移植的容器,極大地簡化了部署流程。本文將詳細介紹如何使用 Docker
    的頭像 發(fā)表于 05-24 16:39 ?1372次閱讀

    HarmonyOS5云服務(wù)技術(shù)分享--Serverless抽獎模板部署

    提前準備一個二級域名(后面托管要用) 二、部署模板四曲 1?? ??模板選擇?? 進入AGC控制臺 → 云開發(fā) → Serverless模板 在模板市場找到\"抽獎活動模板\"
    發(fā)表于 05-22 20:25

    如何在CentOS系統(tǒng)中部署ELK日志分析系統(tǒng)

    功能,使用戶能夠快速獲取關(guān)鍵業(yè)務(wù)洞察。本文將詳細介紹如何在 CentOS 系統(tǒng)中部署 ELK 日志分析系統(tǒng),
    的頭像 發(fā)表于 05-08 11:47 ?1181次閱讀
    如何在<b class='flag-5'>CentOS</b>系統(tǒng)中<b class='flag-5'>部署</b>ELK日志分析系統(tǒng)
    瑞安市| 大厂| 高平市| 固阳县| 新巴尔虎左旗| 巴彦县| 凤庆县| 华宁县| 乐都县| 宁陵县| 呼图壁县| 和田市| 莒南县| 闻喜县| 左云县| 大悟县| 南皮县| 富源县| 赣榆县| 周宁县| 离岛区| 新昌县| 桐柏县| 岚皋县| 嘉义市| 当雄县| 永安市| 昆山市| 汉沽区| 余江县| 威信县| 浦东新区| 达孜县| 榆中县| 临安市| 崇义县| 浮山县| 池州市| 克什克腾旗| 扶绥县| 蚌埠市|