yum源安装方式在RHEL5.5上部署LAMP

我们就使用光盘自带的rpm包安装,,这样可以节约大量找安装包的时间,而且使用yum安装会自动解决包安装时依赖性的问题,非常简单,整个部署10多分钟就可以搞定。一.服务器网络配置IP地址:192.168.1.100掩码:255.255.255.0网关:192.168.1.1主机名:testdb.nyl.com修改hosts文件,添加一行vi /etc/hosts192.168.1.100 testdb.nyl.com二.配置yum源 cd /etc/yum.repos.d/vi mycdrom.repo #新建一个repo文件[Base]name=RHEL5 ISO Basebaseurl=file:///mnt/Serverenabled=1gpgcheck=0OK!把光盘放进去,然后挂载到服务器mount /dev/cdrom /mnt———————————————————————–准备工作做好了,可以开始安装了一、安装Apache首先我们安装apache,这个包最少,安装最容易yum install httpd* –nogpgcheck #加个nogpgcheck参数是强制跳过gpg检查rpm -aq|grep httphttpd-devel-2.2.3-43.el5httpd-manual-2.2.3-43.el5httpd-2.2.3-43.el5启动apache服务service httpd start查看服务状态service httpd status当然也可以添加apache服务随机启动chkconfig –add httpd二、安装Mysqlyum install mysql* –nogpgcheckrpm -aq|grep mysqlmysql-server-5.0.77-4.el5_4.2apr-util-mysql-1.2.7-11.el5mysql-bench-5.0.77-4.el5_4.2mysql-test-5.0.77-4.el5_4.2php-mysql-5.1.6-27.el5mysql-connector-odbc-3.51.26r1127-1.el5mysql-5.0.77-4.el5_4.2mod_auth_mysql-3.0.0-3.2.el5_3mysql-devel-5.0.77-4.el5_4.2如果发现缺了几个包可以进到/mnt/Server目录下打上启动mysql服务service mysqld start查看mysql服务service mysqld status当然也可以添加mysql服务随机启动chkconfig –add mysqldmysqladmin -u root -p password 123456 #修改mysql的口令为”123456″mysql -u root -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 37Server version: 5.0.77 Source distributionType ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.mysql>

就得加倍付出汗水,赢得场场精彩

yum源安装方式在RHEL5.5上部署LAMP

相关文章:

你感兴趣的文章:

标签云: