> php教程 > php手册 > 본문

在centos上安装php5.5+MySQL 5.5.32

WBOY
풀어 주다: 2016-06-13 11:31:32
원래의
849명이 탐색했습니다.

在centos直接使用yum install 安装php的话版本比较低,如果需要高版本的话,请看如下:

Step 1: Installing Remi Repository

<strong>## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 32 Bit ##</strong>
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

<strong>## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 64 Bit ##</strong>
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

<strong>## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 32 Bit ##</strong>
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

<strong>## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 64 Bit ##</strong>
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
로그인 후 복사

Step 2: Installing Apache, MySQL 5.5.32 & PHP 5.5.0

<strong>## Installing on RHEL/CentOS 5-6 ##</strong>
# yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common
로그인 후 복사

Step 3: Installing PHP 5.5.0 Modules

<strong>## Installing on RHEL/CentOS 5-6 ##</strong>
# yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite <br />php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli <br />php-pear php-pdo
로그인 후 복사

Step 4: Starting/Stopping Apache & MySQL 5.5.32

<strong>## Enable Apache and MySQL on Run-Levels</strong> ##
# chkconfig --levels 235 httpd on
# chkconfig --levels 235 mysqld on

<strong>## Apache Commands ##</strong> 
# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# /etc/init.d/httpd status

<strong>## MySQL Commands ##</strong> 
# /etc/init.d/mysqld start
# /etc/init.d/mysqld stop
# /etc/init.d/mysqld status<br />好了差不多了,配置测试之类网上很多资料!!!<br />本文引至Install Apache, MySQL 5.5.32 & PHP 5.5.0 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
로그인 후 복사
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 추천
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!