centos6.5安裝php5.6.0
安裝支援軟體包
yum install -y openssl* libxml2* bzip* libcurl*
安裝過程:
./configure
–prefix=/usr/local/php
–with-openssl
–enable-fpm
–enable-sockets
–enable-sysvshm
–enable-mbstring
–with-freetype-dir
–with-jpeg-dir
–with-png-dir
–with-zlib-dir
–with-libxml-dir=/usr
–enable-xml
–with-config-file-path=/etc
–with-config-file-scan-dir=/etc/php.d
–with-bz2
–with-curl
其它選項:
–with-mhash
–with-mcrypt
–with-mysqli=/usr/bin/mysql_config
–with-mysql=/usr/include/mysql
make
make install
cp init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
chkconfig –add php-fpm
chkconfig php-fpm on
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
service php-fpm start
vim /usr/local/php/etc/php-fpm.conf
listen.allowed_clients = 192.168.100.160
listen = 192.168.100.161:9000
service php-fpm restart
本文轉自1321385590 51CTO部落格,原文連結:http://blog.51cto.com/linux10000/1710960,如需轉載請自行聯絡原作者
相關文章
- CentOS6.5安裝pipCentOS
- CentOS6.5 安裝opensslCentOS
- CentOS6.5安裝ScrapyCentOS
- Centos6.5 Docker安裝CentOSDocker
- centos6.5安裝gitCentOSGit
- CentOS6.5安裝MongoDBCentOSMongoDB
- CentOS6.5安裝RHBaseCentOS
- CentOS6.5安裝RHiveCentOSHive
- CentOS6.5下安裝mongodbCentOSMongoDB
- CentOS6.5安裝VMware ToolsCentOS
- CentOS6.5安裝RHadoopCentOSHadoop
- Centos6.5 IPython安裝CentOSPython
- CentOS6.5安裝sqlite3CentOSSQLite
- CentOS6.5安裝ElasticSearch6.2.3CentOSElasticsearch
- CentOS6.5 安裝Zookeeper叢集CentOS
- CentOS6.5安裝Elasticsearch5.3.0CentOSElasticsearchH5
- centos6.5下安裝配置hudsonCentOS
- 在Centos6.5上安裝ossfsCentOS
- CentOS6.5安裝JDK1.8CentOSJDK
- CentOS6.5安裝Maven3.2.5CentOSMaven
- CentOS6.5安裝Elasticsearch1.7.5CentOSElasticsearch
- CentOS6.5安裝Twemproxy叢集CentOS
- CentOS6.5 安裝Storm叢集CentOSORM
- CentOS6.5 安裝Kafka叢集CentOSKafka
- CentOS6.5 安裝Spark叢集CentOSSpark
- centos6.5上安裝mysql 5.7.20CentOSMySql
- CentOS6.5安裝python3.7CentOSPython
- CentOS6.5安裝Kibana5.3.0CentOS
- centos6.5上安裝discuzX3.3CentOS
- CentOS6.5安裝nginx1.20CentOSNginx
- CentOS6.5上安裝MySQL5.6CentOSMySql
- CentOS6.5安裝Tomcat8.0CentOSTomcat
- CentOS6.5安裝Redis資料庫CentOSRedis資料庫
- CentOS6.5下安裝Open vSwitchCentOS
- CentOS6.5安裝sqoop2CentOSOOP
- CentOS6.5安裝zookeeper-3.4.5(單機)CentOS
- CentOS6.5下MySQL5.6的安裝CentOSMySql
- Centos6.5安裝python2.7.5+pipCentOSPython