CentOS 5.5 installation log - (2) basic system installation and LAMP installation

2010-12-08  来源:本站原创  分类:OS  人气:123 

Description:

1 picture used here is from the Internet got the most from:
Here http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3

2. I only use a small amount of pictures, a detailed picture of each step can be seen these two tutorials:

http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3

http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-2

(A) Basic system installation

1 with the first CD (from CentOS-5.5-i386-bin-1of7.iso burn) to start the computer
2 input linux text, enter the text installation interface
3 Select the language, keyboard, etc. to display partition:

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

Select "Review and modify partitioning layout"

This will set into the partition, follow the prompts to delete the original partition hard drive, set each partition / boot, /, swap, / home and / var

4 cards using automatic configuration (Use dynamic IP configuration (DHCP))
5. Hostname is entered manually, here: server1.example.com
6 Set the root password, for example, abc1234
7 Select Install the software, here is important, huh, huh

First remove all the original selection (generally Desktop - Gnome played before the hook to remove the hook)
Point of "Customize now", the next step in all the listed packages (Package) to remove all select only Base System

Next, and then installation will start automatically, about 5-6 minutes to complete, CD eject on their own, come up with CD press Enter to restart the computer

8. First start, will enter the Setup Agent

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

Here choose "Firewall configuration", then "Run Tool" to make into the Firewall and SELinux configuration

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

Close Firewall and SELinux. (Why turn off? Oh, I do not know, but almost all of the tutorials say to turn off, it first closed, Firewall settings on the left to the future)

Exit, enter the reboot reboot system

(If the first start but after the Setup Agent log does not show the system, you can call up the Setup Agent enter setup to configure)

9 update yum update

Reboot log in as root and enter yum update
The system will download about 108MB update file, then update the system. Takes about 25-30 minutes to complete.

Enter the reboot reboot the system. Such a basic system installed.

(B) LAMP Installation

10 using putty configuration

CentOS complete the basic installation and first start, but thereafter, the configuration can be carried out in Win XP machine.

(1) to obtain CentOs machine's IP address because I was using DHCP automatic configuration, CentOs machine's IP router by the broadband distribution, we look at the Centos machine login, then enter: ifconfig

From the displayed information see the IP address of eth0, for example, 192.168.99.51

(2) putty

In Win XP start putty, enter the Centos machine's IP address, click Open, you can enter the user name root and password

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

11. LAMP installation

(1) the establishment of a batch installation file

# Nano / bin/lamp1.sh

Then enter the following lines:

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

Press Ctrl O, Enter, save the file press Ctrl X, exit

(2) to perform automatic installation

# / Bin / sh lamp1.sh

LAMP system software required to complete the installation.

(3) set boot auto-start Apache and MySQL

# Chkconfig - levels 235 mysqld on
# Chkconfig - levels 235 httpd on

(4) start Apache and MySQL

# / Etc / init.d / mysqld start
# / Etc / init.d / httpd start

Then, in Win XP machine open a browser, enter the Centos machine's IP address, such as 192.168.99.51 to open the page.

Default installation, the page is stored in / var / www / html / directory.

12 fixed IP address and network card set

Above the installation is done under dynamic IP environment, and now we have to start the server settings, you must use a fixed IP address, because many of the configuration with the IP address related to all, we want to CentOs machine card Gai static IP configuration.

(1) machine name
# Nano / etc / hosts

127.0.0.1               localhost.localdomain localhost
192.168.99.44           server1.example.com server1

The contents of the hosts file to the above, save (Ctrl O) and exit (Ctrl X).

(2) LAN IP address

# Nano / etc/sysconfig/network-scripts/ifcfg-eth0

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.99.255
IPADDR=192.168.99.44
NETMASK=255.255.255.0
NETWORK=192.168.99.0
ONBOOT=yes

Configuration changes will etn0 card as above, here set a static IP address: 192.168.99.44
Save (Ctrl O) and exit (Ctrl X).

(3) Gateway Gateway address as Centos machine is connected to the Internet under a broadband router, so the gateway address is the Router's IP address, where my broadband router's IP address is 192.168.99.1.

# Nano / etc / sysconfig / network

GATEWAY=192.168.99.1

Set the Gateway address above. Save (Ctrl O) and exit (Ctrl X).

(4) DNS resolution

# Nano / etc / resolv.conf

nameserver 11.22.33.44
nameserver 55.66.77.88

This nameserver should be set to your ISP (Internet company) DNS Server address.
How to get the correct DNS address? There are two general ways:

First, look at the ISP site, they will give a specific DNS address to set the second is the convenience of customers watching from the broadband router. My broadband router is a Linksys WRT160N, the router log on, point the Status page, it displays the current internet DNS1 and DNS2, these two addresses written down, and then enter into our Centos machine / etc / resolv.conf file, which available.

Save (Ctrl O) and exit (Ctrl X).

Setup is complete. Restart the machine reboot.

Startup is complete, the Centos machine's IP is 192.168.99.44, the hostname is server1.example.com (or server1), after further settings on the IP and machine name this subject.

(5) card virtual IP
Virtual host, the easiest is to set up multiple virtual hosts on the same IP, and then release a different virtual IP-based content.

To set up multiple network cards in the same IP, you can do:
(I) from the original network adapter configuration file to copy ifcfg-eth0 ifcfg-eth0: 0

# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth0:0

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

(Ii) modify the network card name and IP address
# Nano ifcfg-eth0: 0

DEVICE=eth0:0
IPADDR=192.168.99.17

CentOS 5.5 installation log - (2) basic system installation and LAMP installation

This only needs to change more than 2 lines. Save (Ctrl O) and exit (Ctrl X). Restart the machine reboot.
In this way, this card will have two IP addresses.

: -

相关文章
  • CentOS 5.5 installation log - (2) basic system installation and LAMP installation 2010-12-08

    Description: 1 picture used here is from the Internet got the most from: Here http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3 2. I only use a small amount of pictures, a detailed picture of each step can be seen these two tutor

  • CentOS 5.5 setup log - (2) Install the base system installation and LAMP 2010-12-08

    Description: 1. The picture used here is recruited from the Internet, most from: Here http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3 2. I only used a few pictures, a detailed picture of each step can see these two tutorials: h

  • CentOS 5.5 installation log - (5) LAMP basic configuration 2010-12-13

    LAMP installation is complete, we now do the basic configuration. (A) Apache (httpd) 1 to modify the initial page of type # Nano / etc / httpd / conf / httpd.conf Find DirectoryIndex, modify the following: DirectoryIndex index.html index.htm index.sh

  • CentOS 5.5 setup log - (5) LAMP basic configuration 2010-12-13

    LAMP installation is complete, we now do the basic configuration. (A) Apache (httpd) 1. To modify the type of the initial page # Nano / etc / httpd / conf / httpd.conf Find the DirectoryIndex, revised as the following: DirectoryIndex index.html index

  • CentOS 5.5 installation log - (1) prepare 2010-12-08

    (A) Description: 1, this is just a setup record, mainly memo. Of course, if this record can be a little help for beginners, the better. 2, the Internet has been a lot of very good detailed tutorial CentOS 5 installation configuration. I am learning f

  • CentOS 5.5 installation log - (4) install the software with the yum-volume 2010-12-13

    Yum install software using the format is simple: yum install pure-ftpd The above example would install PureFTPD. Install other software, then you can specify the package name. To typing the command line one by one, not only error-prone, not easy to r

  • CentOS 5.5 setup log - (1) Preparation 2010-12-08

    (A) Description: 1, this is just a setup record, mainly notes. Of course, if this record can be helpful for beginners, the better. 2, online has a lot of nice and detailed tutorial CentOS 5 installation configuration. I am learning from these tutoria

  • CentOS 5.5 setup log - (4) yum install software volume 2010-12-13

    Yum install the software using the format is simple: yum install pure-ftpd The above examples on the installation of PureFTPD. Installing other software, then you can specify the package name. One by typing in the command line to not only prone to er

  • Run-time and applications on the desktop in AIR 2.0 installation log 2010-04-06

    AIR 2.0 (desktop version) and run-time and application installation log file location with the previous 1.x different, the location of the platform are as follows: Windows XP: C: \ Documents and Settings \ <username> \ Local Settings \ Application D

  • Installation of knowledge management system fengoffice 2010-10-28

    feng office is an open source knowledge management system (knowledge management system). 1. Dependent on the environment: feng office environment is running (apache + php + mysql), I use here are the latest version, apache 2.2 + php 5.3 + mysql 5.1.

  • centos LAMP installation configuration 2011-07-18

    Recently, time to sort out their own lamp installation, a lot of information online, but also according to their actual to compare ease. Method is based on the experience of their predecessors, the system is 32-bit 64-bit no time to test apache insta

  • CentOS LAMP installation 2010-11-20

    CentOS wide range of sources used. This time we want in terms of how to use the CentOS installation source LAMP. In order to facilitate understanding, we use a very simple installation method. Hope that we can well understand. Yesterday for a VPS, fr

  • Failed to get the installation date from the system registry. Please install Xma 2011-03-26

    Xmanager installed, use the time to run Xmanager browser, the following error: Failed to get the installation date from the system registry. Please install Xmanager Enterprise again. And installed once or error, and later discovered the problem. 1 Op

  • Centos installed VSFTPD after log in as root or do not have permission 2011-07-10

    Centos installed VSFTPD after log in as root or do not have permission Nothing to do with selinux, if not normally have permission to write to write, then the getsebool-a | grep ftp setsebool ftp_home_dir on The question you need to set the configura

  • Thread 1 cannot allocate new log, sequence 101 system downtime 2011-08-04

    Suddenly today, the database is down, check to see last seen alert.log Thread 1 cannot allocate new log, sequence 101. Analysis that should be written dbwr slow, but too frequent switching redo log larger than the result. View redo select * from v $

  • In Windows XP 64bit install Vmware Server encountered "the system administrator to set a system policy prohibits this installation" message 2011-09-18

    In Windows XP 64 bit install Vmware Server2.0 encountered "the system administrator to set a system policy prohibits this installation" message Solution is as follows: 1, open the "Start -> Control Panel -> Administrative Tools ->

  • lamp installation tutorial 2010-06-28

    First, we have to get Apache, Mysql and PHP source code package, the software's official website as follows: Apache: http://www.apache.org MySQL: http://www.mysql.com PHP: http://www.php.net Download the source package are: httpd-2.2.9.tar.gz mysql-5

  • CentOS 5.5 installation log - (7) LDAP installation and basic configuration 2010-12-15

    Now try installing LDAP (openLDAP). 1 Software Installation: yum -y install openldap openldap-clients openldap-servers nss_ldap samba samba-client openssl mod_ssl php-ldap php-pdo php-cli php-common perl-LDAP smbldap-tools perl-Digest-SHA1 perl-Diges

  • CentOS 5.5 installation log - (6) vsftpd and virtual users 2010-12-14

    General configuration of small files to upload can psftp, and virtual hosts file, and a large quantity, with psftp obviously very convenient. Here we configure vsftp as an FTP server, and set to a virtual user logs in, but also set a user directory f

  • CentOS 5.5 installation log - (3) Configure yum repo 2010-12-10

    CentOS 5.5 basic installation is complete, you can use yum update to update the system, then you can use yum to install all the software, the official website has detailed documentation for yum: http://www.centos.org/docs/5/html/yum/ Use the default