标签:验证过 下载 rip XML support lin org ble error_log
以下正式操作前的各个软件版本和系统环境参考这三篇为前提清理之前安装的mysql环境
[root@minion-1 mysql]# rm -rf /etc/init.d/mysqld
[root@minion-1 mysql]# rm -rf /usr/local/mysql/
[root@minion-1 mysql]# rm -rf /data/mysql/*
[root@minion-1 mysql]# tar xf mysql-5.6.42-linux-glibc2.12-x86_64.tar.gz -C /usr/local/
[root@minion-1 mysql]# cd /usr/local/
[root@minion-1 local]# ln -sv mysql-5.6.42-linux-glibc2.12-x86_64/ mysql
[root@minion-1 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
复制一些模板文件
[root@minion-1 mysql]# cp support-files/my-default.cnf /etc/my.cnf
[root@minion-1 mysql]# cp support-files/mysql.server /etc/init.d/mysqld
[root@minion-1 mysql]# vi /etc/init.d/mysqld
basedir=/usr/local/mysql
datadir=/data/mysql
[root@minion-1 mysql]# service mysqld start
[root@minion-1 mysql]# netstat -tupln |grep mysql
[root@minion-1 ~]# cd php-7.3.2/
[root@minion-1 php-7.3.2]# make clean
[root@minion-1 php-7.3.2]# yum -y install libcurl-devel gcc-c++
[root@minion-1 php-7.3.2]# ./configure --prefix=/usr/local/php-fpm --with-config-file-path=/usr/local/php-fpm/etc/ --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --with-pear --with-curl --with-openssl
编译安装
[root@minion-1 php-7.3.2]# make && make install
[root@minion-1 php-7.3.2]#vi /etc/profile.d/php-fpm.sh
export PATH=/usr/local/php-fpm/sbin:$PATH
[root@minion-1 php-7.3.2]# source /etc/profile.d/php-fpm.sh
[root@minion-1 php-7.3.2]#cp php.ini-production /usr/local/php-fpm/etc/php.ini
编辑php-fpm.conf
[root@minion-1 php-7.3.2]#vi /usr/local/php-fpm/etc/php-fpm.conf
[global]
pid=/usr/local/php-fpm/var/run/php-fpm.pid
error_log=/usr/local/php-fpm/var/log/php-fpm.log
[www]
listen=/tmp/php-fcgi.sock
listen.mode=666
user=php-fpm
group=php-fpm
pm=dynamic
pm.max_children=50
pm.start_servers=20
pm.min_spare_servers=5
pm.max_spare_servers=35
pm.max_requests=500
rlimit_files=1024
[root@minion-1 ~]# cd ~/php-7.3.2/
[root@minion-1 php-7.3.2]#cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
[root@minion-1 php-7.3.2]#chmod 755 /etc/init.d/php-fpm
[root@minion-1 php-7.3.2]#chkconfig --add php-fpm
[root@minion-1 php-7.3.2]#chkconfig php-fpm on
[root@minion-1 php-7.3.2]#useradd php-fpm
[root@minion-1 php-7.3.2]#service php-fpm start
[root@minion-1 php-7.3.2]# ps -ef |grep php-fpm
[root@minion-1 ~]#wget http://nginx.org/download/nginx-1.13.8.tar.gz
[root@minion-1 ~]#tar xf nginx-1.13.8.tar.gz
[root@minion-1 ~]#cd nginx-1.13.8
[root@minion-1 nginx-1.13.8]#./configure --prefix=/usr/local/nginx
[root@minion-1 nginx-1.13.8]#make && make install
标签:验证过 下载 rip XML support lin org ble error_log
原文地址:https://blog.51cto.com/popli3/2361090