Conveyor belt: linux-centos6.5 Server Setup and initialization configuration details (top)
Continue with the above installation, after the installation will appear below the interface click Reboot Restart
After rebooting, you can see the following TTY terminal interface as this is the minimum setup input root and previously configured password
The first step is to give the firewall the light.
Iptables-f command for emptying rules
Here is a command (I forgot to hit it)/etc/init.d/iptables save to save the currently emptied rule
Chkconfig iptables stop booting does not allow the boot firewall
Chkconfig--list iptables See if Iptables is off
Here's how Linux security shuts down commands in execution
Change the value of the Red place variable to diabled
The above operation can make SELinux boot does not start, but the current is still started the following command can close the current SELinux
Getenforce View SELinux Service status
Setenforce 0 Close Current SELinux
Put the above two services iptables and selinux off after we configure the network related
If I install the system in front of the configuration is able to access the external network as follows we ping Baidu
There's a lot of people in the network that are stuck in this, so I'll tell you in detail
cd/etc/sysconfig/network-scripts/
Vim Ifcfg-eth0
Here is the network configuration file you can check for errors
Deivce indicates the device name
Type indicates network types here is Ethernet
UUID indicates the ID of the device
Onboot indicates whether to start this is important must be opened
The others don't say too much, in fact, the most important thing is that onboot must be started.
If you do not want to configure in this file you can use the graphical interface configuration command as follows:
Setup (if Onboot is on)
You can enter the configuration interface
Select a third network configuration
Select the first configuration device
Select the first configuration Ethernet card
Make up your own configuration, remember to restart the service after configuration
/etc/init.d/network restart
Change the hostname of course I've changed it when I installed it.
The host name above is only temporarily active
To be permanently effective, you need to configure a file command as follows
Vim/etc/sysconfig/network
Then it appears as in the place where the variable value is changed to your host name.
Add a network Map here is an IP address similar to your hostname mapping DNS
Configuring local and network Yum sources
First mount the optical drive, remember to connect your disc to the virtual machine
Edit the self-starter file to enable auto-mount CD-ROM
Vim/etc/fstab on the last line to add the following
Enter YUM.REPOS.D This directory is used to store the Yum source
Each file must end with a. Repo suffix
Enter the following command to complete the configuration of the local Yum source
For the network Yum source I am using the Ari image address is: Http://mirrors.aliyun.com/repo/Centos-6.repo
Configuration of the network Yum Source two commands are done.
Wget-o/etc/yum.repos.d/centos6.5-base Http://mirrors.aliyun.com/repo/Centos-6.repo
Yum Makecache
My operating system is version 6.5, so it's Centos6. If you have a different version, remember to change the version number of the URL above.
Create a snapshot with local and network Yum sources and clone a virtual machine
Before configuring the snapshot, it is recommended to turn the boot mode to 3 if you are minimizing the installation (no graphical interface does not have 5 mode) the default is 3
You can see the snapshot created in the edit virtual machine
Take a snapshot and enter a snapshot name is a scary color.
I took two of them because I often crashed the OS.
Next, clone the virtual machine on the Menu bar tab to find the configuration and there's a clone inside.
Select Current state or select an existing snapshot
Create a complete clone so that the new clone machine and the original machine will not affect each other
Configure name and file path
Complete
Then change the IP and hostname to avoid conflicts
Enter the network configuration file Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Change the IP address to remove the NIC address
Delete In addition to the NIC configuration file
Modify Host name Vim/etc/sysconfig/network
Modify the Network Map vim/etc/hosts
Reboot create a snapshot after you change it.
linux-centos6.5 Server Setup and initialization configuration (bottom)