centos 64位 php7安装,centos7.2 64位安装php7.2.12
1 安装php所需要的扩展
yum -y install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libmcrypt libmcrypt-devel gd gd-devel
2 安装php
./configure --prefix=/usr/local/php7.2 --enable-shared --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-libxml-dir --with-openssl --with-curl --with-zlib-dir -with-gettext --with-jpeg-dir --with-png-dir --with-bz2 --with-freetype-dir --with-iconv --with-config-file-path=/usr/local/php7.2/etc --enable-mbstring --with-gd --disable-debug --enable-short-tags --disable-posix --enable-exif --enable-ftp --enable-sockets --with-mhash --enable-zip --enable-opcache --enable-inline-optimization
make
make install
cp php.ini-production /usr/local/php7.2/etc/php.ini
3 编辑php配置文件
编辑 php.ini文件 设置如下
short_open_tag = On
disable_functions = "dl,exec,passthru,pcntl_exec,popen,posix_kill,posix_mkfifo,posix_setuid,proc_close,proc_open,proc_terminate,shell_exec,system,leak,posix_setpgid,posix_setsid,proc_get_status,proc_nice,show_source"
cgi.fix_pathinfo=0
date.timezone = Asia/Shanghai
expose_php = Off
4 编辑php-fpm配置文件
cp php-fpm.conf.default php-fpm.conf
编辑 php-fpm.conf 设置如下
pid = /usr/local/php7/var/run/php-fpm.pid
error_log = log/php-fpm.log
log_level = notice
process_control_timeout = 30
events.mechanism = epoll
listen = 127.0.0.1:9007
listen.backlog = -1
pm.max_children = 1024
pm.start_servers = 80
pm.min_spare_servers = 20
pm.max_spare_servers = 80
pm.max_requests = 2000
pm.status_path = /status
ping.path = /ping
ping.response = pong
slowlog = var/log/phpslow_$pool.log
request_slowlog_timeout = 5s
request_terminate_timeout = 60s
rlimit_files = 65534
php_admin_value[open_basedir] = "/tmp/"
php_admin_value[disable_functions] = dl,exec,leak,passthru,pcntl_exec,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,system
4 测试php
#测试php-fpm配置
/usr/local/php7.2/sbin/php-fpm -t
/usr/local/php7.2/sbin/php-fpm -c /usr/local/php7/etc/php.ini -y /usr/local/php7.2/etc/php-fpm.conf -t
#启动php-fpm
/usr/local/php7.2/sbin/php-fpm
/usr/local/php7.2/sbin/php-fpm -c /usr/local/php7/etc/php.ini -y /usr/local/php7.2/etc/php-fpm.conf
#关闭php-fpm
kill -INT `cat /usr/local/php7.2/var/run/php-fpm.pid`
#重启php-fpm
kill -USR2 `cat /usr/local/php7.2/var/run/php-fpm.pid`
标签:12,fpm,php7.2,64,usr,posix,centos7.2,php,local
来源: https://www.cnblogs.com/jackspider/p/11459163.html
centos 64位 php7安装,centos7.2 64位安装php7.2.12相关推荐
- 编译安装Centos7.2+Apache2.4.25+PHP7.2.10+Mysql5.6.16
一.编译部署Apache2.4.25 1.环境准备 #设置或停止防火墙: [root@localhost ~]# systemctl stop firewalld.service [root@loca ...
- nginx1.10.3 php7.0,centos7.2源码安装php7.0.9和nginx1.10.3服务器
下载nginx-1.10.3.tar.gz,php-7.0.9.tar.gz.也可以去nginx官网,php官网下载想要的版本.我选择nginx1.10.3稳定版和php7.0.9最新版.php源码包 ...
- 戴尔服务器R200安装 centos7(U盘安装)
戴尔服务器R220(主机)安装centos7 前言 原本是要安装centos 8,但是centos8 在2021年正式停止维护,CentoS 7 将继续在 RHEL 7 生命周期内 (2024 年底) ...
- 物理机(服务器)安装centos7系统,物理机上安装 centos7
1: 官网下载 centos7 版本,用 powerISO 刻录好. 2: 将刻录好的系统查到服务器,开机按照提示按键进入BIOS面板,选择boot,选择select hardware......选择 ...
- Windows环境下用虚拟机安装使用Linux系统(下载安装CentOS7镜像+下载安装VMware+配置虚拟机和系统安装)
一.下载CentOS镜像 这是Linux的一个发行版,相比红帽子(RedHat)的企业版(Enterprise Linux)来说,这个是免费的版本,特点是兼容性和界面可能差了点,但是非常的稳定,占用资 ...
- VMware安装Centos7后有线线缆被拔出
背景:在win10 系统中的虚机软件VMware Workstation中安装CentOS7桌面版,安装过程中没有设置网络 1.确认你win10系统打开了这两个服务:VMware DHCP Servi ...
- win10下安装Centos7
1.先安装win0,到微软的官网下载镜像文件写进U盘,然后重启进如BIOS界面设置U盘引导,开始安装.(注意!安装双系统必须先安装win0,否则引导有错!). 2.win10已经安装成功了.现在去ce ...
- 使用U盘安装CentOS7
利用U盘安装CentOS7系统 准备工作 开始安装: 安装Centos7 准备工作 1.准备一个8G以上的U盘. 2.UltraISO虚拟光驱(试用版即可)最新版 下载地址:https://cn.ul ...
- VirtualBox 安装 CentOS7及网卡设置
文章目录 VirtualBox 安装 CentOS7 第一步:安装VirtualBox6.0.4 第二步:安装CentOS 系统. 1. 正常启动刚刚创建好的虚拟机 2.提示我们选择一个虚拟光盘文件( ...
最新文章
- Maven中settings.xml的配置项说明
- 制造业物料清单BOM、智能文档阅读、科学文献影响因子、Celebrated Italian mathematician ZepartzatT Gozinto 与 高津托图...
- desktop.ini winxp之马上更新图标
- python实例3.0——动态页面:Ajax数据爬取
- std::set, std::list, std::vector在erase的区别
- android httpclient webview,android – 访问WebView中的http响应头?
- d3.js——饼状图
- C#开发组态软件心路历程
- Nachos操作系统-文件系统添加多级目录
- 简明 Python 教程
- arcgis 批量计算几何_计算几何_ArcGIS基础视频教程第一季_其他视频-51CTO学院
- 软件测试数据中心,数据中心行业测试方案.PDF
- TB6612FNG电机驱动使用说明
- 服务器进pe iso安装系统教程,iso系统怎么安装( pe怎么安装iso原版镜像)
- php除数不能为零,0为什么不能做除数(为什么0不能作为除数)
- 基础的强化学习(RL)算法及代码详细demo
- 变点理论CUSUM在择时交易中的应用
- 【知识图谱】Neo4j 导入数据构建知识图谱的三种方法
- 对100层楼两个玻璃球测试问题的理解
- 安全四大顶会论文查询