centos下yum安装lamp和lnmp轻松搞定,到底多轻松你看就知道了,妈妈再也不担心不会装lamp了。
很辛苦整理的安装方法,会持续更新下去。凡无法安装的在评论里贴出问题来,会尽快解决。共同维护一个可用yum可用更新.
软件列表:php5.4 apache2.2 mysql5.5 nginx1.8 centos6.x
rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm rpm -Uvh http://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 --enablerepo=remi install -y mysql-server mysql php php-devel php-xml php-fpm php-mysql php-mbstring php-mcrypt php-gd httpd nginx wget svn vim yum expect
说明:这里会更新会比较慢大约54个包,原因是remi国内没有源,从国外更新。remi什么时候国內会有源呢?
如果遇到错误:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
vi /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 .........
service nginx restart service httpd restart service php-fpm restart service mysqld restart
vi /etc/yum.repos.d/remi.repo
[remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi .......
本页会不定期更新,方便大家安装系统。 记得关注。。。
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文:http://blog.csdn.net/e421083458/article/details/46808621