分类 标签 存档 黑客派 订阅 搜索

搭建 Docker 开发环境 ---- 安装 OpenResty 和 PHP7(基于 centos7)

浏览 评论

openresty

安装 openresty

yum -y install yum-utils yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo yum -y install openresty

检查openresty 相关的包

yum --disablerepo="*" --enablerepo="openresty" list available

nginx 日志

./env/openresty/nginx/log:/usr/local/openresty/nginx/logs ./env/openresty/nginx/vhost:/usr/local/openresty/nginx/conf/vhost

php7.1

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php71w-{pecl-redis,mbstring,pdo,mcrypt,mysqlnd,gd,common,cli,imap,intl,devel,json,ldap,xml,fpm,opcache}

php errorlog

./env/php/fpm/log:/var/log/php-fpm/error.log ./env/php/fpm/php-fpm.conf:/etc/php-fpm.conf ./env/php/fpm/:/etc/php-fpm.d ./env/php/php.d/:/etc/php.d ./env/php/php.ini:/etc/php.ini

评论  
留下你的脚步
推荐阅读