Nginx安装yuminstall-ypcrepcre-developensslopenssl-develgccgcc-c++wgethttps://nginx.org/download/ng...tarzxfnginx-1.14.0.tar.gzcdnginx-1.14。0groupaddwwwuseradd-gwwwwww./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&&makeinstallmkdir-p/var/tmp/nginx/client//usr/local/nginx/sbin/nginx-c/usr/local/nginx/nginx.confPHP安装yum-yinstallzlib-devellibxml2-devellibjpeg-devellibjpeg-turbo-devellibiconv-develfreetype-devellibpng-develgd-devellibcurl-devellibxslt-develepel-releaseiculibicuwgethttps://ftp.gnu.org/pub/gnu/l...tarzxflibiconv-1.15.tar.gz./configure--prefix=/usr/local/libiconvmake&&makeinstallyum-yinstallmhashwget-Ophp-7.2.8.tar.gzhttp://cn2.php.net/get/php-7....tarzxfphp-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=wwwmakehttp://bbs.xiuno.com/thread-1...makeinstallcpphp.ini-production/usr/local/php/etc/php.inicpsapi/fpm/init.d.php-fpm/etc/init.d/php-fpmcd/usr/local/php/etccpphp-fpm.conf.defaultphp-fpm.confcpphp-fpm.d/www.conf.defaultphp-fpm.d/www.confchmod+x/etc/init.d/php-fpm/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php-fpm.confRedis安装wgethttp://download.redis.io/rele...tarzxfredis-4.0.11.tar.gzcdredis-4.0.11makecdsrccmakeinstallmkdir-p/usr/local/redis/binmkdir-p/usr/local/redis/etccd..cpredis.conf/usr/local/redis/etc/cdsrccpmkreleasehdr.shredis-benchmarkredis-check-aofredis-cliredis-server/usr/local/redis/binvi/usr/local/redis/etc/redis.confdaemonizeyes/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf/usr/local/php/bin/peclinstallredisextension=redis.soMySQL安装yum-yinstallgccgcc-c++ncursesncurses-develcmakebisonmakegroupaddmysqluseradd-gmysqlmysqlwgethttps//sourceforge.net/proje...tarzxfboost_1_59_0.tar.gzwgethttps://cdn.mysql.com//archiv...tarzxfmysql-5.7.9.tar.gzcdmysql-5.7.9mkdir-p/data/mysqlmkdir-p/usr/local/mysqlcm醒了-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_FEDERATED_STORAGE_LEGINEDWITH=1\-1\-DWITH_MYISAM_STORAGE_ENGINE=1\-DENABLED_LOCAL_INFILE=1\-DENABLE_DTRACE=0\-DDEFAULT_CHARSET=utf8mb4\-DDEFAULT_COLLATION=utf8mb4_general_ci\-DWITH_EMBEDDED_SERVER=1makemakeinstallcd/usr/local/mysql/chown-Rroot.mysqlmysql.chown.mysql/data/cpsupport-files/my-default.cnf/etc/my.cnfcpsupport-files/mysql.server/etc/init.d/mysqld/usr/local/mysql/bin/mysqld--initialize-不安全--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.serverstartecho"/usr/local/mysql/lib">/etc/ld.so.conf.d/mysql.confComposer安装curl-sShttps://getcomposer.org/insta...|/usr/local/php/bin/phpwgethttp://curl.haxx.se/ca/cacert.../usr/local/php/bin/php-r"print_r(openssl_get_cert_locations());"cpcacert.pem[default_cert_dir]curl-sShttps://getcomposer.org/insta...|/usr/local/php/bin/phpcpcomposer.phar/usr/local/bin/composer系统命令添加cp/usr/local/php/bin/php/usr/local/bin/cp/usr/local/mysql/支持文件/mysql.server/usr/local/bin/cp/usr/local/mysql/bin/mysql/usr/local/bin/cp/usr/local/nginx/sbin/nginx/usr/local/bin/
