<s id="qx03x"></s>
  • <tt id="qx03x"><noscript id="qx03x"></noscript></tt><rt id="qx03x"><nav id="qx03x"></nav></rt>

    <strong id="qx03x"><li id="qx03x"></li></strong>
    <tt id="qx03x"></tt>

        1.   最近配置了幾臺Web服務器,將安裝筆記貼出來吧。沒時間像以前那樣,將文章寫的那樣系統了,請見諒。詳細配置,可以看以前的舊文章:

            http://blog.www.lukangtou.cn/nginx_php_v6

            1、安裝Nginx:
          mkdir -p /Data/tgz
          cd /Data/tgz
          yum install wget
          yum install pcre
          yum install openssl*
          yum -y install gcc gcc-c++ autoconf 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 make
          yum -y install gd gd2 gd-devel gd2-devel
          /usr/sbin/groupadd www
          /usr/sbin/useradd -g www www
          ulimit -SHn 65535
          wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz
          tar zxvf pcre-8.32.tar.gz
          cd pcre-8.32
          ./configure --prefix=/Data/apps/pcre
          make && make install
          cd ../

          wget http://nginx.org/download/nginx-1.5.2.tar.gz
          tar zxvf nginx-1.5.2.tar.gz
          cd nginx-1.5.2
          ./configure --user=www --group=www --prefix=/Data/apps/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/Data/tgz/pcre-8.32 --with-http_realip_module --with-http_image_filter_module
          make
          make install
          cd ../


            2、安裝 MySQL:
          wget http://downloads.mysql.com/archives/mysql-5.6/mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
          tar zxvf mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
          mv mysql-5.6.10-linux-glibc2.5-x86_64 /Data/apps/mysql
          /usr/sbin/groupadd mysql
          /usr/sbin/useradd -g mysql mysql
          mkdir -p /Data/data/mysql/data
          yum install libaio
          /Data/apps/mysql/scripts/mysql_install_db --basedir=/Data/apps/mysql --datadir=/Data/data/mysql/data --user=mysql

          sed -i "s#/usr/local/mysql#/Data/apps/mysql#g" /Data/apps/mysql/bin/mysqld_safe


            3、安裝PHP依賴庫
          mkdir -p /Data/apps/libs/
          wget http://www.ijg.org/files/jpegsrc.v9.tar.gz    
          tar zxvf jpegsrc.v9.tar.gz
          cd jpeg-9/
          ./configure --prefix=/Data/apps/libs --enable-shared --enable-static --prefix=/Data/apps/libs
          make
          make install
          cd ../

          wget http://prdownloads.sourceforge.net/libpng/libpng-1.6.2.tar.gz
          tar zxvf libpng-1.6.2.tar.gz
          cd libpng-1.6.2/
          ./configure --prefix=/Data/apps/libs
          make
          make install
          cd ../

          wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.gz
          tar zxvf freetype-2.4.12.tar.gz
          cd freetype-2.4.12/
          ./configure --prefix=/Data/apps/libs
          make
          make install
          cd ../


          wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz?big_mirror=0"
          wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?big_mirror=0"
          wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz?big_mirror=0"


          tar zxvf libmcrypt-2.5.8.tar.gz
          cd libmcrypt-2.5.8/
          ./configure --prefix=/Data/apps/libs
          make
          make install
          cd libltdl/
          ./configure --prefix=/Data/apps/libs --enable-ltdl-install
          make
          make install
          cd ../../


          tar zxvf mhash-0.9.9.9.tar.gz
          cd mhash-0.9.9.9/
          ./configure --prefix=/Data/apps/libs
          make
          make install
          cd ../


          vi /etc/ld.so.conf

          添加:
          /Data/apps/libs/lib

          然后:
          ldconfig


          tar zxvf mcrypt-2.6.8.tar.gz
          cd mcrypt-2.6.8/
          export LDFLAGS="-L/Data/apps/libs/lib -L/usr/lib"
          export CFLAGS="-I/Data/apps/libs/include -I/usr/include"
          touch malloc.h
          ./configure --prefix=/Data/apps/libs --with-libmcrypt-prefix=/Data/apps/libs
          make
          make install
          cd ../


            4、編譯安裝PHP 5.5
          wget http://www.php.net/get/php-5.5.1.tar.gz/from/tw2.php.net/mirror
          tar zxvf php-5.5.1.tar.gz
          cd php-5.5.1/
          export LIBS="-lm -ltermcap -lresolv"
          export DYLD_LIBRARY_PATH="/Data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
          export LD_LIBRARY_PATH="/Data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
          ./configure --prefix=/Data/apps/php --with-config-file-path=/Data/apps/php/etc --with-mysql=/Data/apps/mysql --with-mysqli=/Data/apps/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir=/Data/apps/libs --with-jpeg-dir=/Data/apps/libs --with-png-dir=/Data/apps/libs --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt=/Data/apps/libs --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-opcache --with-pdo-mysql --enable-maintainer-zts
          make
          make install
          cp php.ini-development /Data/apps/php/etc/php.ini
          cd ../


          ln -s /Data/apps/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
          mv /Data/apps/php/etc/php-fpm.conf.default /Data/apps/php/etc/php-fpm.conf


            5、編譯安裝PHP擴展
          wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
          tar zxvf autoconf-latest.tar.gz
          cd autoconf-2.69/
          ./configure --prefix=/Data/apps/libs
          make
          make install
          cd ../

          wget http://pecl.php.net/get/memcache-2.2.7.tgz
          tar zxvf memcache-2.2.7.tgz
          cd memcache-2.2.7/
          export PHP_AUTOCONF="/Data/apps/libs/bin/autoconf"
          export PHP_AUTOHEADER="/Data/apps/libs/bin/autoheader"
          /Data/apps/php/bin/phpize
          ./configure --with-php-config=/Data/apps/php/bin/php-config
          make
          make install
          cd ../


            打開 /Data/apps/php/etc/php.ini 查找 ; extension_dir = "ext"
            在其后增加一行:
          extension = "memcache.so"


          Tags: , , , ,



          技術大類 » Web服務器 | 評論(113) | 引用(0) | 閱讀(158161)
          大連小菜
          2013-5-29 16:39
          沒裝成功,張兄給個詳細點的吧。
          寒冰 Email Homepage
          2013-5-29 18:55
          沒有亮點。還不如看張大哥關于第六版的那個配置。
          loosky Email Homepage
          2013-5-29 21:47
          LNMP的一鍵安裝包做得挺不錯的。http://www.lnmp.org/
          不通
          2013-5-30 01:27
          ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
          Charlie-Y Email
          2013-5-30 16:05
          老大,APMServ 6.0開發的怎么樣啦,好期待新的Nginx http服務器?。。?!
          ken
          2013-5-30 16:14
          數碼圈昨天本來可以沙發的 無奈驗證碼
          run Homepage
          2013-5-30 16:54
          有詳細點的沒哦!加點注釋也行啊
          observer
          2013-5-30 17:47
          envy 特來關注一下
          有魄力
          observer
          2013-5-30 17:48
          沒有優化這個 php-fpm.conf
          fei
          2013-5-30 18:02
          PCRE,mcrypt,libpng,freetype可以用CentOS自帶的。MySQL 5.6.11已經出了。
          掃書網 Homepage
          2013-5-31 09:47
          一會試一下,我的php還在用5.2.17呢。無彈窗小說
          周淵
          2013-5-31 16:26
          終于你又活躍了,,  期待你們的bigsea
          無線網 Homepage
          2013-6-1 13:10
          還是喜歡軍哥的lnmp 一鍵包
          成都linux維護 Homepage
          2013-6-2 14:02
          不錯!
          ysq Homepage
          2013-6-2 23:05
          windows下的nginx+php+mysql綠色包:http://ysq.me/webserver/wempserver/
          run Homepage
          2013-6-3 09:30
          還有詳細點的沒??!太深了
          Beckham Homepage
          2013-6-3 18:04
          更新的真快 nginx 都用上 1.5.0 了
          80h大叔 Homepage
          2013-6-3 18:05
          有時間了宴哥給個詳細的教程吧..... 最新版很多方法不一樣了自從看了宴哥的教程,apache果斷下線,nginx頂起來了, apache只用來做郵件服務器grin http://blog.80uncle.com
          009
          2013-6-3 21:37
          終于等到更新了,主要是看優化配置
          清茶
          2013-6-4 11:32
          宴哥有幾個地址沒有提供啊。
          分頁: 1/6 第一頁 1 2 3 4 5 6 下頁 最后頁
          發表評論
          表情
          emotemotemotemotemot
          emotemotemotemotemot
          emotemotemotemotemot
          emotemotemotemotemot
          emotemotemotemotemot
          打開HTML
          打開UBB
          打開表情
          隱藏
          記住我
          昵稱   密碼   游客無需密碼
          網址   電郵   [注冊]
                         

           
          在线精品国产在线视频