ADJ網路實驗室
打印

[介紹] CentOS 6.5 下安裝最新版 Nginx + php-fpm + MySQL 5.5

CentOS 6.5 下安裝最新版 Nginx + php-fpm + MySQL 5.5

環境: CentOS 6.5 64Bit
要使用最新版之前...先移除已安裝的套件

# yum remove httpd* php* mysql*

yum預設是沒有nginx的套件...所以我們要先安裝資源庫
# yum install yum-priorities -y
# rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
再來一鍵安裝所有套件...覽人包:
# yum install --enablerepo=remi -y nginx  php php-fpm php-gd php-mysql php-mbstring php-xml php-mcrypt mysql mysql-server
再來預設開機就啟用
#chkconfig nginx on
#chkconfig php-fpm on
#chkconfig mysqld on
然後立即啟用
#service php-fpm start
#service nginx start
#service mysqld start
這樣就可以搞定安裝囉...是不是很簡單...當然裝完還要設定...待續~~
參考資料:http://www.lifelinux.com/how-to-install-nginx-and-php-fpm-on-centos-6-via-yum/3/





TOP

ARTERY.cn