1分鐘完美安裝最新 CentOS + Nginx + PHP-FPM + MySQL

今天發現了個好東西
如今,咱們能夠快速全自動搞定 CentOS + Nginx + PHP-FPM + MySQL 的安裝了
本文爲 21andy.com 原創,轉載請以超級連接 方式註明出處 http://www.21andy.com
先新建一個 repo
# vi /etc/yum.repos.d/alt.ru.repo
放入以下內容
[CentALT]
name=CentALT Packages for Enterprise Linux 5 - $basearch
baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
enabled=1
gpgcheck=0
protect=1
啓用 EPEL repo
i386
x86_64
好了,一鍵安裝
# yum install nginx php-fpm mysql mysql-server
爽吧!
本文爲 21andy.com 原創,轉載請以超級連接 方式註明出處 http://www.21andy.com
更完整的安裝
yum -y update
yum -y mysql mysql-server
mysqladmin -u root password root
yum -y install nginx php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator
# APC 和 eAccelerator 有衝突,2選1
yum -y install php-pecl-apc
看下個人完整安裝,只要一句
yum -y install nginx mysql mysql-server php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator
安裝結果,全自動
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql x86_64 5.0.89-1.el5 CentALT 3.5 M
mysql-server x86_64 5.0.89-1.el5 CentALT 10 M
nginx x86_64 0.8.33-3.el5 CentALT 422 k
php-cli x86_64 5.3.1-2.el5 CentALT 2.4 M
php-eaccelerator x86_64 2:0.9.6-1.el5 CentALT 118 k
php-fpm x86_64 5.3.1-2.el5 CentALT 1.2 M
php-gd x86_64 5.3.1-2.el5 CentALT 110 k
php-mbstring x86_64 5.3.1-2.el5 CentALT 1.1 M
php-mcrypt x86_64 5.3.1-2.el5 CentALT 27 k
php-mysql x86_64 5.3.1-2.el5 CentALT 84 k
php-pdo x86_64 5.3.1-2.el5 CentALT 91 k
php-pear noarch 1:1.9.0-1.el5 CentALT 420 k
php-pecl-memcache x86_64 2.2.5-3.el5 CentALT 44 k
php-tidy x86_64 5.3.1-2.el5 CentALT 31 k
php-xml x86_64 5.3.1-2.el5 CentALT 115 k
php-xmlrpc x86_64 5.3.1-2.el5 CentALT 48 k
Installing for dependencies:
gmp x86_64 4.1.4-10.el5 base 201 k
libXaw x86_64 1.0.2-8.1 base 329 k
libXmu x86_64 1.0.2-5 base 63 k
libXpm x86_64 3.5.5-3 base 44 k
libedit x86_64 2.11-2.20080712cvs.el5 epel 80 k
libmcrypt x86_64 2.5.8-4.el5.centos extras 105 k
libtidy x86_64 0.99.0-14.20070615.el5 epel 140 k
mysql-libs x86_64 5.0.89-1.el5 CentALT 1.8 M
perl-DBD-MySQL x86_64 3.0007-2.el5 base 148 k
perl-DBI x86_64 1.52-2.el5 base 600 k
php-common x86_64 5.3.1-2.el5 CentALT 554 k
sqlite2 x86_64 2.8.17-5.el5 CentALT 165 k
t1lib x86_64 5.1.1-7.el5 epel 208 k
Updating for dependencies:
libevent x86_64 1.4.12-1.el5 CentALT 129 k
Transaction Summary
================================================================================
Install 30 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
來看看我用虛擬機測試的強大結果
http://www.21andy.com/blog/20100219/1703.html
相關文章
相關標籤/搜索