The minimal version of CentOS does not start the network by default, so you should configure the network yourself after installing CentOS.Old man's VMware virtual Machine network connection is in NAT mode (other ways not tried).1 Modifying the
First, install the bundle file of VMwareFind the bundle file for VMware at end-of-year terminalLaw One: (recommended)Vmware-workstation-full-10.0.2-1744117.x86_64.bundleBash Vmware-workstation-full-10.0.2-1744117.x86_64.bundleLaw II:Give the Execute
Before centos is used, Ubuntu is used. Therefore, the two commands useradd and adduser are ambiguous. on Ubuntu, these two commands are used, while on centos, the same command is used, adduser is a link.
# Ll/usr/sbin/| grep userlrwxrwxrwx. 1 Root 7
Official Website: http://atat.apache.org/download-70.cgidownload ZIP filesUnzip apache-tomcat-7.0.54.zipMv apache-Tomcat-7.0.54/usr/tomcatCP/usr/tomcat/Catalina. sh/etc/init. d/tomcatVim/etc/init. d/tomcatAdd the following two lines in the second
Preface:
Recently, I was studying Linux and wanted to connect to the centos system under the virtual machine. I checked it online and I was able to tune it.
1. Set your local vmnet8 IPaddress to automatically get it.
2. in VMware,
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 #
Nginx check whether the yum source has nginx
yum list nginxSince the official source does not have nginx, we need to find it by ourselves. This is the other system I am looking for. Please check the http://wiki.nginx.org/Install.
[nginx]name=nginx
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
Applicable to machines that cannot access the Internet
Mount-T iso9660-o loop/root/CentOS-6.5-x86_64-bin-DVD1.iso/mnt
CD/etc/yum. Repos. d
CP CentOS-Base.repo CentOS-Base.repo.bak
VI CentOS-Base.repo
Baseurl = file: // mnt
Gpgcheck = 0
#
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
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 "single" and press OK.
After updating the
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.
Solution to yum locking in CentOS
When you run the yum command, the message "Another app is currently holding the yum lock; waiting for it to exit..." is displayed. This is because yum is locked and cannot be used.For error information, refer:
Centos 7 static IP settings, centosip
This course is intended for Centos 7.0.1406!
1. Edit the ifcfg-eth0 file, vim is minimized when the installation is not installed, you need to install it on your own is not described.
# vim
If CentOS is installed on a USB flash drive, the system displays "the input signal is out of range ".
I got a obsolete server, T220. Although I was a little older, I had to drum up and change some parts. Then start to install the system.
If you
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
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.