php7

来源:互联网 发布:淘宝运营团队管理 编辑:程序博客网 时间:2024/03/29 02:05
useradd webadmyum install epel-* -yyum install -y wget unzip gcc gcc-c++  make zlib zlib-devel pcre pcre-devel  libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-serverswget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gztar zxf libiconv-1.14.tar.gzcd libiconv-1.14./configure --prefix=/usrmakemake installcd ..wget http://php.net/distributions/php-7.0.0.tar.bz2tar -jxvf php-7.0.0.tar.bz2cd php-7.0.0./configure --prefix=/usr/local/php70 --sysconfdir=/usr/local/php70/etc --with-config-file-scan-dir=/usr/local/php70/etc --enable-fpm --with-fpm-user=webadm --with-fpm-group=webadm --enable-mbstring --enable-sockets --enable-pcntl --enable-pdo --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sysvshm --enable-shmop  --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-gd --with-openssl --enable-opcache --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --with-curl./configure --prefix=/usr/local/php70 --sysconfdir=/usr/local/php70/etc --with-config-file-scan-dir=/usr/local/php70/etc --enable-fpm --with-fpm-user=webadm --with-fpm-group=webadm --enable-mbstring --enable-sockets --enable-pcntl --enable-pdo --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sysvshm --enable-shmop  --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-iconv=/usr/lib --with-gd --with-openssl --enable-opcache=no --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --with-curlmakemake installcp php.ini-production /usr/local/php70/etc/php.inicp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm cp sapi/fpm/php-fpm.conf /usr/local/php70/etc/php-fpm.conf  cp sapi/fpm/www.conf /usr/local/php70/etc/php-fpm.d/www.confcd ..sed -i 's#short_open_tag = Off#short_open_tag = On#g' /usr/local/php70/etc/php.inichmod +x /etc/init.d/php-fpmwget http://nginx.org/download/nginx-1.9.7.tar.gztar -zxvf nginx-1.9.7.tar.gzcd nginx-1.9.7./configure --user=webadm --group=webadm --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_modulemake;make installcd ../etc/init.d/mysqld startGRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '111111' WITH GRANT OPTION;
0 0