Installing NginxYum Install NginxIf the Nginx package cannot be found, create a new file/etc/yum.repos.d/nginx.repo, Content:[Nginx]name=nginx repobaseurl=http://nginx.org/packages/os/osrelease/$basearch/gpgcheck=0enabled=1Where: OS replaced with
Configuring the Network (Ethernet)The first thing to do after installing a system is to configure the network. (The following is a list of Linux private dishes from bird brother----Server Erection chapter fourth, connected to the Internet)
Note: This article refers to the network data collation experiment. Environment: The NIC is Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10) and the system is CentOS6.4 2.6.32-358.x86_64Use the command to find the NIC type, Lspci |grep
Test Environment: CentOS 6.01, add the user, first with the AddUser command to add a normal user, the command is as follows:#adduser TommyAdd a user named Tommy#passwd Tommy//Change PasswordChanging password for user Tommy.New UNIX Password://Enter
CentOS 6.5 Compile and install gcc-4.8.01. Download the source code first
wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.0/gcc-4.8.0.tar.bz2
2. Unzip
tar -jxvf gcc-4.8.0.tar.bz2
3. Download the
First, on the Virtual Machine menu bar, select "Install enhancement", as shown in figure
In this way, there will be a file under/dev/CDROM
Then, prepare the preparations before installation (refer to: virtualbox installation enhancement (Linux)
First, install the desktop environment. I chose xfce, lightweight desktop, which is small and practical and does not occupy too much memory (xfce
No xfce exists in the default centos source. First install the epel source and then install the
1. Download stable version of nginx. http://nginx.org/en/download.html
2. Run the following command to install
# Check System path [[email protected] USR] # PWD/usr # decompress to current path [[email protected] USR] # tar-zxv-F nginx-1.6.2.tar.gz #
After installing the centos 6.5 system with a CentOS-6.5-i386-LiveDVD.iso image (has written the system to the hard disk), it is found that the IP address will be restored after each restart, you can use ifconfig to view the eth0 NIC (or you may
Due to the recent exposure of the Linux bash vulnerability and the attempt to update bash, I thought of configuring centos Yum source.
Command to test the bash vulnerability:
env x=‘() { :;}; echo "Your bash version is vulnerable"‘ bash -c "echo
To increase server security, the root user's remote logon permission is generally disabled.
Disable remote logon for root users:
Modify the/etc/ssh/sshd_config file, Set
#PermitRootLogin yes
To:
PermitRootLogin no
Remove the # symbol. If
ConfigurationData tier
Centos SSH Configuration
OpenSSH has been installed in centos by default, even if you install it with minimal effort. So here we will not introduce the installation of OpenSSH.
SSH Configuration:
1. Modify
Modify the command line resolution by configuring the grub. conf file,Enable/boot/GRUB/grub. conf find the kernel/boot/vmlinuz-2.4.18-3 Ro root =/dev/hda1 HDC = ide-SCSI line, add the parameter VGA = xxx (the value you want to set, see the following
Whether it is hyper-V or VMWare,ClonedCentosLinux network cannot be connected
Ifconfig cannot see eth0. the following error occurs when you restart the NIC:Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
The CentOS system is cloned from VMware and then reset to eth0.
Problem: After cloning CentOS6.4 with VMware, it is found that only eth1 is in the system, and/etc/sysconfig/network-scripts/under only, ifcfg-eth0 file, although can access the
Three methods for configuring IP addresses in CentOS 6.5: CentOS
Experimental software environment: Virtual Machine Vmware Workstation10.0, CentOS 6.5 32-bit
1. automatically obtain the IP address
The virtual machine uses the bridge mode, which is
CentOS forgot the root password for processing, centosroot
Press any key to go to the following page when the system is started
Enter e to go to this page and move up and down to the center
Enter e to enter this page
On this page, append
In the previous article, we mentioned that ifconfig is not a new feature of centos7 by default, so I searched for its new features on the internet and found an article.Centos least-optimized installation without the ifconfig commandCentos7.0 has
Prepare to build a VirtualBox virtual machine template, of course, CentOS. The latest version is 6.6x86 _ 64.1. Install minimal version. If no other packages are installed, the new disk is dynamically divided into 50 GB. The logical volume created
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