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

21 篇文章 0 订阅
8 篇文章 0 订阅

安装编译所需的各种软件

# 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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值