博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos7 安装 php7
阅读量:6202 次
发布时间:2019-06-21

本文共 2262 字,大约阅读时间需要 7 分钟。

hot3.png

yum updateyum -y install epel-releaserpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmyum search php7yum install -y php72w-cli php72w-common php72w-dba php72w-devel php72w-embedded php72w-enchant php72w-fpm php72w-gd php72w-imap php72w-interbase php72w-intl php72w-ldap php72w-mbstring php72w-mysql php72w-mysqlnd php72w-odbc php72w-opcache php72w-pdo php72w-pdo_dblib php72w-pear.noarch php72w-pecl-apcu php72w-pecl-apcu-devel php72w-pecl-geoip php72w-pecl-igbinary php72w-pecl-igbinary-devel php72w-pecl-imagick php72w-pecl-imagick-devel php72w-pecl-libsodium php72w-pecl-memcached php72w-pecl-mongodb php72w-pecl-redis php72w-pecl-xdebug php72w-pgsql php72w-phpdbg php72w-process php72w-pspell php72w-recode php72w-snmp php72w-soap php72w-tidy php72w-xml php72w-xmlrpc --skip-broken===============================================mkdir /tmp/sessionchown -R nobody:nobody /tmp/sessionchmod -R 755 /tmp/sessionsed -i 's|short_open_tag = Off|short_open_tag = On|g' /etc/php.inised -i 's|;date.timezone =|date.timezone = Asia/Shanghai|g' /etc/php.inised -i 's|;session.save_path = "/tmp"|session.save_path = "/tmp/session"|g' /etc/php.inised -i 's|memory_limit = 128M|memory_limit = 300M|g' /etc/php.inised -i 's|post_max_size = 8M|post_max_size = 80M|g' /etc/php.inised -i 's|upload_max_filesize = 2M|upload_max_filesize = 20M|g' /etc/php.inised -i 's|user = apache|user = nobody|g' /etc/php-fpm.d/www.confsed -i 's|group = apache|group = nobody|g' /etc/php-fpm.d/www.confsed -i 's|;listen.owner = nobody|listen.owner = nobody|g' /etc/php-fpm.d/www.confsed -i 's|;listen.group = nobody|listen.group = nobody|g' /etc/php-fpm.d/www.confservice php-fpm startps -ef|grep php===============================================location / {	try_files $uri $uri/ /index.php?$args;}location ~ .*\.php {	fastcgi_pass 127.0.0.1:9000;		fastcgi_keep_conn on;	fastcgi_index index.php;	include fastcgi_params;	set $script    $uri;	set $path_info  "/";	if ($uri ~ "^(.+\.php)(/.+)") {		set $script     $1;		set $path_info  $2;	}	fastcgi_param PATH_INFO $path_info;	fastcgi_param SCRIPT_FILENAME  $document_root/$script;	fastcgi_param SCRIPT_NAME $script;}

 

转载于:https://my.oschina.net/qiongtaoli/blog/1630112

你可能感兴趣的文章
模板文件是否有大小限制?
查看>>
vs 操作快捷键
查看>>
监听器和过滤器
查看>>
Java核心技术卷一基础知识-第6章-接口与内部类-读书笔记
查看>>
使用coding.net来托管源码(可以免费存放私有项目的哦)(转载)
查看>>
osx snow leopard下用homebrew 安装php5.3 + php-fpm
查看>>
在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke
查看>>
PHP代码实现二分法查找
查看>>
window无法启动mongodb服务:系统找不到指定的文件错误的解决方法
查看>>
VBScript开发Excel常见问题
查看>>
【GNOME 边框】GNOME窗口无边框
查看>>
stm32串口之存储与解析
查看>>
替换SQL字段中的换行符,回车符
查看>>
$("#left a",$p)的意思
查看>>
SQL自定义函数
查看>>
每天一个linux命令(23):Linux 目录结构(转)
查看>>
[LeetCode] Longest Substring with At Most Two Distinct Characters
查看>>
error MC1000: 未知的生成错误“此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。...
查看>>
jq鼠标移入和移出事件
查看>>
[LeetCode]题解(python):051-N-Queens
查看>>