首页 CentOS CentOS 5.5使用yum安装LAMP环境(sohu源)

CentOS 5.5使用yum安装LAMP环境(sohu源)

CentOS 5.5默认的是163的源,据说sohu的源很好用,今天小试了下。1、修改yum配置文件,更改为sohu源# cd /etc/yum.repos.d/# cp CentOS-Base.repo CentOS-Base.repo.bak清空CentOS-Base.repo文件内容,替换为以下内容:# CentOS-Base.repo## This file uses a

CentOS 5.5默认的是163的源,据说sohu的源很好用,今天小试了下。

清空CentOS-Base.repo文件内容,替换为以下内容:

更新源

2、使用yum命令安装apache、mysql、PHP环境

iptables -I INPUT -p tcp –dport 80 -j ACCEPT

其他的配置,童鞋们自己搞吧

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

安装日志:

<div class=”cnblogs_code”>[jianbao@localhost~]$yuminstall-yhttpdphpmysqlmysql-serverphp-mysqlphp-develLoadedplugins:fastestmirrorYouneedtoberoottoperformthiscommand.[jianbao@localhost~]$su-口令:[root@localhost~]#yuminstall-yhttpdphpmysqlmysql-serverphp-mysqlphp-develLoadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfilebase:centos.ustc.edu.cnextras:centos.ustc.edu.cn*updates:centos.ustc.edu.cnSettingupInstallProcessResolvingDependencies–>Runningtransactioncheck—>Packagehttpd.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>2.2.<span style=”color: #800080;”>3-<span style=”color: #800080;”>53.el5.centos.<span style=”color: #800080;”>3settobeupdated—>Packagemysql.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1settobeupdated–>ProcessingDependency:perl(DBI)<span style=”color: #0000FF;”>forpackage:mysql—>Packagemysql-server.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1settobeupdated–>ProcessingDependency:perl-DBD-MySQL<span style=”color: #0000FF;”>forpackage:mysql-server—>Packagephp.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated–>ProcessingDependency:php-cli=<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5<span style=”color: #0000FF;”>forpackage:php–>ProcessingDependency:php-common=<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5<span style=”color: #0000FF;”>forpackage:php—>Packagephp-devel.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated–>ProcessingDependency:autoconf<span style=”color: #0000FF;”>forpackage:php-devel–>ProcessingDependency:automake<span style=”color: #0000FF;”>forpackage:php-devel—>Packagephp-mysql.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated–>ProcessingDependency:php-pdo<span style=”color: #0000FF;”>forpackage:php-mysql–>Runningtransactioncheck—>Packageautoconf.noarch<span style=”color: #800080;”>0:<span style=”color: #800080;”>2.59-<span style=”color: #800080;”>12settobeupdated–>ProcessingDependency:imake<span style=”color: #0000FF;”>forpackage:autoconf—>Packageautomake.noarch<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.9.<span style=”color: #800080;”>6-<span style=”color: #800080;”>2.3.el5settobeupdated—>Packageperl-DBD-MySQL.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>3.0007-<span style=”color: #800080;”>2.el5settobeupdated—>Packageperl-DBI.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.52-<span style=”color: #800080;”>2.el5settobeupdated—>Packagephp-cli.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated—>Packagephp-common.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated—>Packagephp-pdo.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5settobeupdated–>Runningtransactioncheck—>Packageimake.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.0.<span style=”color: #800080;”>2-<span style=”color: #800080;”>3settobeupdated–>FinishedDependencyResolutionDependenciesResolved================================================================================PackageArchVersionRepositorySize================================================================================Installing:mysqli386<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1updates<span style=”color: #800080;”>4.9Mmysql-serveri386<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1updates<span style=”color: #800080;”>9.8Mphpi386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>2.3Mphp-develi386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>504kphp-mysqli386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>86kUpdating:httpdi386<span style=”color: #800080;”>2.2.<span style=”color: #800080;”>3-<span style=”color: #800080;”>53.el5.centos.<span style=”color: #800080;”>3updates<span style=”color: #800080;”>1.2MInstalling<span style=”color: #0000FF;”>fordependencies:autoconfnoarch<span style=”color: #800080;”>2.59-<span style=”color: #800080;”>12base<span style=”color: #800080;”>647kautomakenoarch<span style=”color: #800080;”>1.9.<span style=”color: #800080;”>6-<span style=”color: #800080;”>2.3.el5base<span style=”color: #800080;”>476kimakei386<span style=”color: #800080;”>1.0.<span style=”color: #800080;”>2-<span style=”color: #800080;”>3base<span style=”color: #800080;”>319kperl-DBD-MySQLi386<span style=”color: #800080;”>3.0007-<span style=”color: #800080;”>2.el5base<span style=”color: #800080;”>148kperl-DBIi386<span style=”color: #800080;”>1.52-<span style=”color: #800080;”>2.el5base<span style=”color: #800080;”>600kphp-clii386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>2.1Mphp-commoni386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>153kphp-pdoi386<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5updates<span style=”color: #800080;”>65kTransactionSummary================================================================================Install<span style=”color: #800080;”>13Package(s)Upgrade<span style=”color: #800080;”>1Package(s)Totaldownloadsize:<span style=”color: #800080;”>23MDownloadingPackages:(<span style=”color: #800080;”>1/<span style=”color: #800080;”>14):php-pdo-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>65kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>00(<span style=”color: #800080;”>2/<span style=”color: #800080;”>14):php-mysql-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>86kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>00(<span style=”color: #800080;”>3/<span style=”color: #800080;”>14):perl-DBD-MySQL-<span style=”color: #800080;”>3.0007-<span style=”color: #800080;”>2.el5.i386.rpm|<span style=”color: #800080;”>148kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>00(<span style=”color: #800080;”>4/<span style=”color: #800080;”>14):php-common-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>153kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>00(<span style=”color: #800080;”>5/<span style=”color: #800080;”>14):imake-<span style=”color: #800080;”>1.0.<span style=”color: #800080;”>2-<span style=”color: #800080;”>3.i386.rpm|<span style=”color: #800080;”>319kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>01(<span style=”color: #800080;”>6/<span style=”color: #800080;”>14):automake-<span style=”color: #800080;”>1.9.<span style=”color: #800080;”>6-<span style=”color: #800080;”>2.3.el5.noarch.rpm|<span style=”color: #800080;”>476kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>02(<span style=”color: #800080;”>7/<span style=”color: #800080;”>14):php-devel-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>504kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>02(<span style=”color: #800080;”>8/<span style=”color: #800080;”>14):perl-DBI-<span style=”color: #800080;”>1.52-<span style=”color: #800080;”>2.el5.i386.rpm|<span style=”color: #800080;”>600kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>02(<span style=”color: #800080;”>9/<span style=”color: #800080;”>14):autoconf-<span style=”color: #800080;”>2.59-<span style=”color: #800080;”>12.noarch.rpm|<span style=”color: #800080;”>647kB<span style=”color: #800080;”>00:<span style=”color: #800080;”>02(<span style=”color: #800080;”>10/<span style=”color: #800080;”>14):httpd-<span style=”color: #800080;”>2.2.<span style=”color: #800080;”>3-<span style=”color: #800080;”>53.el5.centos.<span style=”color: #800080;”>3.i386.rpm|<span style=”color: #800080;”>1.2MB<span style=”color: #800080;”>00:<span style=”color: #800080;”>05(<span style=”color: #800080;”>11/<span style=”color: #800080;”>14):php-cli-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>2.1MB<span style=”color: #800080;”>00:<span style=”color: #800080;”>07(<span style=”color: #800080;”>12/<span style=”color: #800080;”>14):php-<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5.i386.rpm|<span style=”color: #800080;”>2.3MB<span style=”color: #800080;”>00:<span style=”color: #800080;”>08(<span style=”color: #800080;”>13/<span style=”color: #800080;”>14):mysql-<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1.i386.rpm|<span style=”color: #800080;”>4.9MB<span style=”color: #800080;”>00:<span style=”color: #800080;”>18(<span style=”color: #800080;”>14/<span style=”color: #800080;”>14):mysql-server-<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1.i386.rpm|<span style=”color: #800080;”>9.8MB<span style=”color: #800080;”>00:<span style=”color: #800080;”>39——————————————————————————–Total<span style=”color: #800080;”>256kB/s|<span style=”color: #800080;”>23MB<span style=”color: #800080;”>01:<span style=”color: #800080;”>32Runningrpm_check_debugRunningTransactionTestFinishedTransactionTestTransactionTestSucceededRunningTransactionInstalling:php-common<span style=”color: #800080;”>1/<span style=”color: #800080;”>15Installing:perl-DBI<span style=”color: #800080;”>2/<span style=”color: #800080;”>15Installing:mysql<span style=”color: #800080;”>3/<span style=”color: #800080;”>15Installing:perl-DBD-MySQL<span style=”color: #800080;”>4/<span style=”color: #800080;”>15Installing:php-pdo<span style=”color: #800080;”>5/<span style=”color: #800080;”>15Installing:php-cli<span style=”color: #800080;”>6/<span style=”color: #800080;”>15Installing:imake<span style=”color: #800080;”>7/<span style=”color: #800080;”>15Updating:httpd<span style=”color: #800080;”>8/<span style=”color: #800080;”>15Installing:php<span style=”color: #800080;”>9/<span style=”color: #800080;”>15Installing:php-mysql<span style=”color: #800080;”>10/<span style=”color: #800080;”>15Installing:mysql-server<span style=”color: #800080;”>11/<span style=”color: #800080;”>15Installing:autoconf<span style=”color: #800080;”>12/<span style=”color: #800080;”>15Installing:automake<span style=”color: #800080;”>13/<span style=”color: #800080;”>15Installing:php-devel<span style=”color: #800080;”>14/<span style=”color: #800080;”>15Cleanup:httpd<span style=”color: #800080;”>15/<span style=”color: #800080;”>15Installed:mysql.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1mysql-server.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.0.<span style=”color: #800080;”>95-<span style=”color: #800080;”>1.el5_7.<span style=”color: #800080;”>1php.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5php-devel.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5php-mysql.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5DependencyInstalled:autoconf.noarch<span style=”color: #800080;”>0:<span style=”color: #800080;”>2.59-<span style=”color: #800080;”>12automake.noarch<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.9.<span style=”color: #800080;”>6-<span style=”color: #800080;”>2.3.el5imake.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.0.<span style=”color: #800080;”>2-<span style=”color: #800080;”>3perl-DBD-MySQL.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>3.0007-<span style=”color: #800080;”>2.el5perl-DBI.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>1.52-<span style=”color: #800080;”>2.el5php-cli.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5php-common.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5php-pdo.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>5.1.<span style=”color: #800080;”>6-<span style=”color: #800080;”>27.el5_7.<span style=”color: #800080;”>5Updated:httpd.i386<span style=”color: #800080;”>0:<span style=”color: #800080;”>2.2.<span style=”color: #800080;”>3-<span style=”color: #800080;”>53.el5.centos.<span style=”color: #800080;”>3Complete![root@localhost~]#

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/zhonghe/fwq/centos/20200729/7278.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

【免责声明】本站内容转载自互联网,其发布内容言论不代表本站观点,如果其链接、内容的侵犯您的权益,烦请提交相关链接至邮箱xwei067@foxmail.com我们将及时予以处理。

Copygight © 2016-2023 https://www.0532zz.com All Rights Reserved.青岛站长网

站长:xwei067#foxmail.com(请把#换成@)