Yum Updateyum Install screen wget iptraf-ng unzip openssh-clients subversion git man setuptool system-config-firewall-tui Ntsysv Vim links bzip2 pcre-devel zlib-devel networkmanager-tui mariadb-server gcc-c++ make vim/etc/ssh/sshd_ Config#begin modifyusedns no#end modifyvim/etc/ssh/sshd_configsystemctl restart Sshd mkdir-p/opt/srccd/opt/ Srcwget Https://nginx.org/download/nginx-1.11.11.tar.gzwget http://cn2.php.net/distributions/ Php-7.1.3.tar.bz2sha256sum php-7.1.3.tar.bz2# C145924d91b7a253eccc31f8d22f15b61589cd24d78105e56240c1bb6413b94fwget http://download.redis.io/releases/ Redis-3.2.8.tar.gzsha1sum redis-3.2.8.tar.gz# 6780D1ABB66F33A97AAD0EDBE020403D0A15B67F TAR-ZXF NGINX-1.11.11.TAR.GZCD nginx-1.11.11./configure--prefix=/opt/nginx--with-pcre--with-file-aio--with-http_realip_ Modulemake && make INSTALLCD. yum Install libxml2-devel curl-devel libjpeg-devel libpng-devel freetype-devel openssl-develtar-jxf PHP-7.1.3.TAR.BZ2CD php-7.1.3./configure--prefix=/opt/php--with-mysqli--with-pdo-mysql--enable-exif--with-zlib--with-gd--enable-mbstring-- Enable-gd-native-ttf--with-curl--enable-pcntl--enable-soap--enable-sockets--enable-zip--with-pcre-dir-- ENABLE-FPM--with-jpeg-dir--with-freetype-dir--with-png-dir--with-opensslmake-j2 && make INSTALLCD..  TAR-ZXF redis-3.2.8.tar.gzcd redis-3.2.8make && make install mkdir-p/opt/var/run vim/ Opt/nginx/conf/nginx.conf#start modifypid/opt/var/run/nginx.pid; #end modify vim/etc/systemd/system/ Nginx.service#begin[unit]description=the NGINX HTTP and reverse proxy serverafter=syslog.target Network.target Remote-fs.target nss-lookup.target [service]type=forkingpidfile=/opt/var/run/nginx.pidexecstartpre=/opt/ Nginx/sbin/nginx-texecstart=/opt/nginx/sbin/nginxexecreload=/bin/kill-s HUP $MAINPIDExecStop =/bin/kill-s QUIT $ Mainpidprivatetmp=true [install]wantedby=multi-user.target#end systemctl Daemon-reloadsystemctl Enable NgiNxsystemctl Start Nginx mkdir-p/opt/nginx/man/man8cp/opt/src/nginx-1.11.11/man/nginx.8/opt/nginx/man/man8 vim/etc/systemd/system/php-fpm.service#begin[unit]description=the php FastCGI Process managerafter= NETWORK.TARGET [SERVICE]TYPE=SIMPLEPIDFILE=/OPT/VAR/RUN/PHP-FPM.PIDEXECSTART=/OPT/PHP/SBIN/PHP-FPM-- Nodaemonize--FPM-CONFIG/OPT/PHP/ETC/PHP-FPM.CONFEXECRELOAD=/BIN/KILL-USR2 $MAINPIDPrivateTmp =true [install ]wantedby=multi-user.target#endcp/opt/src/php-7.1.3/php.ini-development/opt/php/lib/php.inivim/opt/php/lib/ Php.ini#begin Addzend_extension=/opt/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so#end addcp/opt/ Php/etc/php-fpm.conf.default/opt/php/etc/php-fpm.confvim/opt/php/etc/php-fpm.conf#begin modifypid =/opt/var/run/ Php-fpm.pid#end Modifycp/opt/php/etc/php-fpm.d/www.conf.default/opt/php/etc/php-fpm.d/www.conf systemctl Daemon-reloadsystemctl enable Php-fpmsystemctl start Php-fpm mkdir/opt/binvim/etc/environment#begin AddPAth=${home}/bin:/opt/nginx/bin:/opt/php/bin:/opt/php/sbin:/opt/bin:/usr/local/bin:/bin:/usr/bin#end add Vim/etc/man_db.conf#begin Addmanpath_map/opt/nginx/bin/opt/nginx/manmanpath_map/opt/php/bin/opt/php/php/man#end Add firewall-cmd--permanent--add-service=http (development port Firewall-cmd--zone=public--add-port=81/tcp--permanent) Firewall-cmd--reload yum install memcached libmemcached-devel mkdir-p/data/redischown Nobody:nobody/data/redismkdir-p/data/logchown nobody:nobody/data/log cp/opt/src/redis-3.2.8/redis.conf/etc /vim/etc/redis.conf#begin modifylogfile/data/log/redis.logpidfile/var/run/redis.piddir/data/redis#end Modifyvim/ Etc/systemd/system/redis.service#begin[unit]description=the Redis serverafter=network.target [service]type= simplepidfile=/var/run/redis.piduser=nobodyexecstart=/usr/local/bin/redis-server/etc/redis.confexecstop=/bin/ Kill-s SIGTERM $MAINPIDPrivateTmp =TRUE [INSTALL]WANTEDBY=MULTI-USER.TARGET#END&NBsp;systemctl daemon-reloadsystemctl enable Redissystemctl start Redis vim/etc/my.cnf.d/server.cnf#begin Add after [Mariadb]character_set_server=utf8mb4#end add ---------------------------------------------------------------Firewall-cmd--zone=public--add-port=80/ TCP--permanent #开放80端口systemctl restart Firewalld.service #充气防火墙http://www.linuxidc.com/linux/2016-03/128880.htm// Create user and authorize grant all privileges on * * to ' root ' @ '% ' identified by ' 123456 ' with GRANT OPTION; Flush privileges; Phpize./configure--with-php-config=/opt/php/bin/php-config compiled PHP add PostgreSQL pgsql and pdo_pgsql Extension Module/HTTP/ blog.csdn.net/bqw2008/article/details/511822611. Need to install libpqxx.x86_64 libpqxx-devel.x86_64 C + + library 2. Pre-installed Pgsql database yum Install postgresql.x86_64 postgresql-devel.x86_64-y
Full version of Linux installed