centos7安装web服务器(openresty1.11.2.1、mysql5.7、php7、redis3.2),centos7php7


安装编译所需的各种软件

# yum -y install pcre pcre-devel openssl openssl-devel libjpeg libjpeg-devel libpng libng-devel libxml2 libxml2-devel php-mcrypt libmcrypt libmcrypt-devel freetype freetype-devel libcurl libcurl-devel 


1.卸载系统自带的mysql

# rpm -qa | grep -i "mysql"

# rpm -e --nodeps ......


2.安装percona

# rpm -Uhv http://www.percona.com/redir/downloads/percona-release/percona-release-0.0-1.x86_64.rpm

# yum list | grep percona

# yum install Percona-Server-shared-57.x86_64

# yum install Percona-Server-client-57.x86_64

# yum install Percona-Server-server-57.x86_64

3.查找percona的随机密码

# cat /var/log/mysqld.log | grep "temporary password"


4.设置percona

# mysql_secure_installation


5.安装openresty

# ./configure --prefix=/usr/local/openresty --user=www --group=www --with-mail --with-mail_ssl_module --with-ipv6

# gmake && gmake install


6.安装php7

# ./configure -prefix=/usr/local/php -with-config-file-path=/usr/local/php/etc --with-fpm-user=www --with-fpm-group=www -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-jpeg-dir -with-xmlrpc -with-xsl -with-mcrypt -with-zlib -with-mhash -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-mysqlnd -enable-zip

# make && make install


7.安装redis


相关内容

    暂无相关文章