Study centos in idle time.
The http://isoredirect.centos.org/centos/5/isos/i386/ provides an online installation package of 8.3 MB, download speed is good.
By loading this image on a virtualbox-based virtual machine, you can easily enter the
Step 1: Create a VM
Set the memory size to 1024.
Set Virtual Disk
Select Hard Disk Type
Select File Location
Click OK and select the ISO file as the installation file.
Now the virtual machine settings are complete.
Step 2: Install
My VPs is relatively idle, and the company needs to build a PHP online shop. I can just use my VPs to save a few hundred yuan of Space purchase costs. However, if the website is not managed by me, you need to grant the FTP permission to your
Environment]
Dell r905 server (4-core CPU, 32 GB memory, 1.8 TB hard disk)
The original operating system is RHEL 5.2 i386. The virtual machine uses xen, and several virtual machines are enabled on it.
[Problem]
Because the 32-bit operating
When I decided to install the KVM Virtual Machine by myself, I first went to the official website to find the installation steps and found the article getting KVM to run on your machine without much effort, follow the steps above to start
When you use centos, you may encounter centos in English. In this case, centos is installed by default (in English ). After installation, various Chinese characters are garbled. So, how can we solve this problem.
1. The centos system accesses g.cn
1. Configuration File/Etc/hosts (the local host IP address ing can have multiple aliases )./Etc/services (correspondence between port numbers and standard services ).
/Etc/sysconfig/Network (set the host name, gateway, and domain name ).Hostanme =
Centos 5 x86_64:
Wget http://mirror.centos.org/centos/5/ OS /x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpmWget http://mirror.centos.org/centos/5/ OS /x86_64/CentOS/readline-5.1-3.el5.x86_64.rpmWget http://mirror.centos.org/centos/5/ OS
Install Fuse
Download:
Wget http://nchc.dl.sourceforge.net/project/fuse/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz
Installation:
Tar-zxvf tar-zxvf fuse-2.9.2.tar.gzcd fuse-2.9.2./configuremakemake installmodprobe Fuse
Fuse is what it looks like here, the
In the RedHat Fedora Project, there is an epel (extra packages for Enterprise Linux), which is the RHEL fedora software repository. By adding it, you can get a lot of free software packages that support RHEL/centos. For example, nginx and openvpn,
The original Ubuntu failed to work normally because of a hard disk, so we had to reinstall it. However, my colleague introduced the use of RedHat, saying that most of the Linux server in the Organization is RedHat, and I didn't think much about it.
1. centos DNS server Modification
1
vi /etc/resolv.conf
Modify the following content
1
nameserver 8.8.8.8 # Google Domain Name Server
2
nameserver 8.8.4.4 # Google Domain Name Server
2. centos
Environment: centos5.4 squid3.0x
Download the latest squid3x stable version to the http://www.squid-cache.org
1. Prepare the centos Environment
Groupadd squid
Useradd-S/sbin/nologin-D/dev/null-G squid
Mkdir/dev/SHM/tmp
Chmod 1777/dev/SHM/tmp
Mount
1. Linux is a multi-user, multi-task operating system, including user accounts and group accounts.Subdivide user accounts (ordinary user accounts, super user accounts) in addition to the user accounts that think there are also group accounts. The so-
The graphic interface was installed by default when I installed the company server. The Company engineer told me the next day that the graphic interface could not be installed and I had to reinstall all the servers,
After that, I have been
Install crontab:[Root @ centos ~] # Yum install vixie-cron[Root @ centos ~] # Yum install crontabs
Note:Vixie-cron is the main program of cron;The crontabs package is used to install, uninstall, or list the tables used to drive the cron daemon.
Cron
This article is transferred from
(Super detail) http://bbs.ywlm.net/thread-615-1-1.html
Http://hi.baidu.com/edeed/blog/item/76b81e17dd9545054a90a705.html
Http://jiajun.iteye.com/blog/387265
Centos startup sequence:
1. When we press the power button
1. Install the libunwind library.
CD/usr/localWget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gzTar xf libunwind-1.1.tar.gz CD libunwind-1.1Cflags =-FPIC./configure # Add the compilation parameter make cflags =-FPIC
[Modify IP address]1. Use the Setup command
Run the setup command to enter the graphic interface. Enter Network Configuration and Edit Device as prompted. Set the IP address as prompted.
2. directly edit the file and modify it.
#
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