国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

centos6搭建lnmp環境

bingo / 954人閱讀

摘要:安裝安裝安裝安裝安裝系統命令添加

Nginx安裝

yum install -y pcre pcre-devel openssl openssl-devel gcc gcc-c++

wget https://nginx.org/download/ng...

tar zxf nginx-1.14.0.tar.gz

cd nginx-1.14.0

groupadd www

useradd -g www www

./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi/ --http-scgi-temp-path=/var/tmp/nginx/scgi/

make && make install

mkdir -p /var/tmp/nginx/client/

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/nginx.conf

PHP安裝

yum -y install zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel epel-release icu libicu

wget https://ftp.gnu.org/pub/gnu/l...

tar zxf libiconv-1.15.tar.gz

./configure --prefix=/usr/local/libiconv

make && make install

yum -y install mhash

wget -O php-7.2.8.tar.gz http://cn2.php.net/get/php-7....

tar zxf php-7.2.8.tar.gz

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-curl --with-freetype-dir --with-gd -with-gettext --with-iconv-dir --with-libdir=lib64 --with-libxml-dir --with-openssl --with-pcre-regex --with-pdo-mysql --with-png-dir --with-xmlrpc --with-zlib --with-mhash --with-jpeg-dir --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-xml --enable-zip --enable-intl --enable-mysqlnd --disable-rpath --disable-fileinfo --with-fpm-user=www --with-fpm-group=www

make

http://bbs.xiuno.com/thread-1...

make install

cp php.ini-production /usr/local/php/etc/php.ini

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

cd /usr/local/php/etc

cp php-fpm.conf.default php-fpm.conf

cp php-fpm.d/www.conf.default php-fpm.d/www.conf

chmod +x /etc/init.d/php-fpm

/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php-fpm.conf

Redis安裝

wget http://download.redis.io/rele...

tar zxf redis-4.0.11.tar.gz

cd redis-4.0.11

make

cd src

make install

mkdir -p /usr/local/redis/bin

mkdir -p /usr/local/redis/etc

cd ..

cp redis.conf /usr/local/redis/etc/

cd src

cp mkreleasehdr.sh redis-benchmark redis-check-aof redis-cli redis-server /usr/local/redis/bin

vi /usr/local/redis/etc/redis.conf

daemonize yes

/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf

/usr/local/php/bin/pecl install redis

extension=redis.so

MySQL安裝

yum -y install gcc gcc-c++ ncurses ncurses-devel cmake bison make

groupadd mysql

useradd -g mysql mysql

wget https://sourceforge.net/proje...

tar zxf boost_1_59_0.tar.gz

wget https://cdn.mysql.com//archiv...

tar zxf mysql-5.7.9.tar.gz

cd mysql-5.7.9

mkdir -p /data/mysql

mkdir -p /usr/local/mysql

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql

-DMYSQL_DATADIR=/data/mysql
-DWITH_BOOST=../boost_1_59_0
-DSYSCONFDIR=/etc
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_PARTITION_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITH_MYISAM_STORAGE_ENGINE=1
-DENABLED_LOCAL_INFILE=1
-DENABLE_DTRACE=0
-DDEFAULT_CHARSET=utf8mb4
-DDEFAULT_COLLATION=utf8mb4_general_ci
-DWITH_EMBEDDED_SERVER=1

make

make install

cd /usr/local/mysql/

chown -R root.mysql .

chown -R mysql.mysql /data/

cp support-files/my-default.cnf /etc/my.cnf

cp support-files/mysql.server /etc/init.d/mysqld

/usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql/ --datadir=/data/mysql/

/usr/local/mysql/support-files/mysql.server --initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql

/usr/local/mysql/support-files/mysql.server start

echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql.conf

Composer安裝

curl -sS https://getcomposer.org/insta... | /usr/local/php/bin/php

wget http://curl.haxx.se/ca/cacert...

/usr/local/php/bin/php -r "print_r(openssl_get_cert_locations());"

cp cacert.pem [default_cert_dir]

curl -sS https://getcomposer.org/insta... | /usr/local/php/bin/php

cp composer.phar /usr/local/bin/composer

系統命令添加

cp /usr/local/php/bin/php /usr/local/bin/

cp /usr/local/mysql/support-files/mysql.server /usr/local/bin/

cp /usr/local/mysql/bin/mysql /usr/local/bin/

cp /usr/local/nginx/sbin/nginx /usr/local/bin/

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/29313.html

相關文章

  • CentOS6.5下 使用yum搭建LNMP環境

    摘要:一安裝更新源默認源中版本為安裝及常用的拓展模塊注安裝其他拓展模塊可使用命令測試是否安裝成功配置文件,在末尾添加二安裝卸載的版本增加新源安裝啟動設置開機啟動修改默認密 一、安裝php7 1.更新yum源(默認yum源中php版本為5.3.3) # rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 2.安裝php7及常用的拓展...

    kevin 評論0 收藏0
  • CentOS6.5下 使用yum搭建LNMP環境

    摘要:一安裝更新源默認源中版本為安裝及常用的拓展模塊注安裝其他拓展模塊可使用命令測試是否安裝成功配置文件,在末尾添加二安裝卸載的版本增加新源安裝啟動設置開機啟動修改默認密 一、安裝php7 1.更新yum源(默認yum源中php版本為5.3.3) # rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 2.安裝php7及常用的拓展...

    Simon_Zhou 評論0 收藏0
  • centos6.5和centos7如何搭建php環境

    摘要:總有人認為搭建環境很復雜,然后嘗試安裝一鍵安裝包。考慮目前國內網站大部分采集文章十分頻繁,更有甚者不注明原文出處,原作者更希望看客們查看原文,以防有任何問題不能更新所有文章,避免誤導繼續閱讀 作者:白狼 出處:http://www.manks.top/linux_php.html 本文版權歸作者,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接,否則保留追究法...

    Alex 評論0 收藏0

發表評論

0條評論

bingo

|高級講師

TA的文章

閱讀更多
最新活動
閱讀需要支付1元查看
<