Install yum source to deploy LAMP on RHEL5.5

Source: Internet
Author: User
We can install the rpm package that comes with the CD, which saves a lot of time to find the installation package, and the yum installation will automatically solve the dependency problem during package installation, which is very simple, the entire deployment can be completed in over 10 minutes. I. server network configuration IP Address: 192.168.1.100 mask: 255.255.255.0 Gateway: 192.168.1.1 Host Name: testdb.nyl.com modify the hosts file and add a line of vi/etc/hosts1. We will use the rpm package that comes with the CD for installation, this saves a lot of time to find the installation package, and the yum installation will automatically solve the dependency problem during package installation, which is very simple. The entire deployment can be done in over 10 minutes.
 
1. server network configuration
IP Address: 192.168.1.100
Mask: 255.255.255.0
Gateway: 192.168.1.1
Host Name: testdb.nyl.com
 
Modify the hosts file and add a line
 
Vi/etc/hosts
192.168.1.100 testdb.nyl.com
 
2. Configure the yum Source
 
Cd/etc/yum. repos. d/
Vi mycdrom. repo # create a repo File
[Base]
Name = RHEL5 ISO Base
Baseurl = file: // mnt/Server
Enabled = 1
Gpgcheck = 0
 
OK! Attach the CD to the server.
 
Mount/dev/cdrom/mnt
 
-----------------------------------------------------------------------
 
Ready for Installation
 
1. install Apache
 
First, install apache. This package is the least and is the easiest to install.
 
Yum install httpd * -- nogpgcheck # Add the nogpgcheck parameter to force the gpg check to be skipped.
 
Rpm-aq | grep http
Httpd-devel-2.2.3-43.el5
Httpd-manual-2.2.3-43.el5
Httpd-2.2.3-43.el5
 
Start apache service
Service httpd start
 
View service status
Service httpd status
 
Of course, you can also add the apache service to start at random.
 
Chkconfig -- add httpd
 
Ii. Install Mysql
 
Yum install mysql * -- nogpgcheck
 
Rpm-aq | grep mysql
Mysql-server-5.0.77-4.el5_4.2
Apr-util-mysql-1.2.7-11.el5
Mysql-bench-5.0.77-4.el5_4.2
Mysql-test-5.0.77-4.el5_4.2
Php-mysql-5.1.6-27.el5
Mysql-connector-odbc-3.51.26r1127-1.el5
Mysql-5.0.77-4.el5_4.2
Mod_auth_mysql-3.0.0-3.2.el5_3
Mysql-devel-5.0.77-4.el5_4.2
 
If several packages are missing, enter the/mnt/Server Directory
 
Start mysql Service
Service mysqld start
 
View mysql services
Service mysqld status
 
Of course, you can also add the mysql service to start at random.
Chkconfig -- add mysqld
 
Mysqladmin-u root-p password 123456 # change the mysql password to "123456"
 
Mysql-u root-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 37
Server version: 5.0.77 Source distribution
 
Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.
 
Mysql>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.