Using the Software
Xshell 5
RM a.txt Delete normal files a.txt
Rm-r A/delete directory a
RM-RF A/force delete directory A
-F indicates mandatory
Uninstalling Apache
Yum Remove httpd
Uninstalling SVN
RPM-E Subversion--nodeps
Download
wget Http://cn2.PHP.net/get/php-7.0.2.tar.gz/from/this/mirror
Unzip the installation
Tar zxvf php-7.0.2.tar.gz
CD php-7.0.2
Install dependent libraries together
Yum-y Install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel MySQL pcre-devel cu Rl-devel Libxslt-devel
Installing plugins
./configure--prefix=/usr/local/php \
--with-curl \
--with-freetype-dir \
--WITH-GD \
--with-gettext \
--with-iconv-dir \
--with-kerberos \
--WITH-LIBDIR=LIB64 \
--with-libxml-dir \
--WITH-MYSQLI \
--WITH-OPENSSL \
--with-pcre-regex \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-pear \
--with-png-dir \
--WITH-XMLRPC \
--with-xsl \
--with-zlib \
--ENABLE-FPM \
--enable-bcmath \
--enable-libxml \
--enable-inline-optimization \
--ENABLE-GD-NATIVE-TTF \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--ENABLE-PCNTL \
--ENABLE-SHMOP \
--ENABLE-SOAP \
--enable-sockets \
--enable-sysvsem \
--enable-xml \
--enable-zip
Compiling the installation
Make && make install
Note that PHP7 www.conf This configuration file configuration phpfpm port number, and so on, if you modify the default 9000 port number should be changed here, and then change the Nginx configuration
CP Php.ini-development/usr/local/php/lib/php.ini
Cp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf
Cp/usr/local/php/etc/php-fpm.d/www.conf.default/usr/local/php/etc/php-fpm.d/www.conf
Cp-r./sapi/fpm/php-fpm/etc/init.d/php-fpm
Start
/etc/init.d/php-fpm
Query process
Ps-aux | grep "PHP"
Kill process
Kill 8080
Installing Apache connections
Http://www.cnblogs.com/zhuque/archive/2012/11/03/2763352.html
Service httpd Start
Service httpd Restart Restart
Service httpd Stop Services
Linux Environment PHP7.0 Installation