Today on the server to deploy the Python program, found that the server is missing requests library, so try to install, CentOS version how to Mount Python pip, I gave before the Ubuntu Apt-get methodFirst look at the server system version#
You can use CAT/proc/version to view the specific operating system information, including the kernel version and the version in RedHat.Uname-A is similar to the output above, and the output hostnameCAT/etc/issue: the current centos version is centos
Prerequisites: 1. centos 7.0 64-bit system: CentOS-7.0-1406-x86_64-DVD.iso2. ultraiso3. a USB flash drive of at least 8 GB.Installation Steps: 1. Use ultraiso to burn the image to the USB flash drive (select to format the image to FAT32 when burning)
Make some notes ~ The ghost (PhP extension package) httpd service will be launched by SELinux. If SELinux is not disabled, setroubleshoot/var/log/audit. log to obtain the solution. Permission issues exist.Is the context permission not changed when
Centos 6.x Startup Process
/Boot Partition
Boot partitions can be identified by default. Therefore, boot partitions can be identified when the system cannot load hard disks!
Initramfs memory File System
In centos 6. x, The initramfs memory
I. switching between character and graphical interfaces:
1. Enter init 3 in shell to enter the character interface;
2. Enter init 5 in shell to enter the X Window Interface, or enter startx.
3. Restart the init 6 machine. init 1 enters the single-
Configure dual-IP for Ubuntu
Sudo Vim/etc/Network/interfaces open the IP configuration file
1 auto lo 2 iface lo inet loopback 3 auto eth0 4 iface eth0 inet static 5 #pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx 6 address 210.47.248.180 7
Centos supports both bios and UEFI startup, so there are two installation methods.
I. Traditional BIOS installation methods
(1) set BIOS: Enable CSM and disable secure startup;
(2) Use diskgen or similar tools to format the hard disk in MBR format;
(
Kickstart is not added in this article. It is a manual installation of network-heavy installation, so that you can better understand the principles of PXE installation.
The server environment in this article is centos6.4, and the client can be any
Use Kickstart to create an automatically installed ISO Disk
1. Mount the centos disc and copy the content of the disc to a specified folder.
Mount/dev/SR1/Media/CDROM/-T iso9660 # note that I use a virtual machine, note that when using your optical
Centos command to view port usage, for example, to view port 80 usage, use the following command:
Lsof-I TCP: 80
List all ports
Netstat-ntlp
1. Enable the port (take port 80 as an example)
Method 1:
/Sbin/iptables-I input-P TCP -- dport 80-J
Recently, the company's internal servers were built using the lamp environment, but Tomcat access was required, while I used the yum installation when setting up the environment, if you are too troublesome, you can go to the yum installation of
Some copyright-related software is removed from the official sources of centos. Therefore, you want to install the software, download it manually, or use other sources. below I recommend two common sources, which can basically meet the needs of
Lsusb: view the USB device.
Iwconfig to check whether the NIC is installed
Uname-R: Check the system kernel version because the NIC driver to be searched is related to the kernel version.
The chip used by wireless Nic TL-WN725N V2 is RealTek 8179.
1. load the ISO files required for installing VMware Tools to the CD/DVD of the virtual machine, as shown in. Generally, VMWare prompts you to install VMware tool automatically, the ISO file path is as follows:
C: \ Program Files (x86) \ VMware
I. Environment Introduction:
Server: centos 192.168.1.225
Client: centos 192.168.1.226
Ii. installation:
NFS installation configuration: centos 5:
yum -y install nfs-utils portmap
Centos 6 (in centos 6.3, The Portmap service is undertaken by rpcbind
Solve Problems Related to disordering of disks in CentOS
When using linux, you must have encountered disk disorder. In general, there are several possible causes of disk disorder. For example, if a disk is connected to a server through a RAID card
Solve the problem that the CentOS boot progress bar is stuck
In centos, if you want to set the program to start when it is started, Baidu will modify/etc/rc. local and add it as the boot Startup Program. Then the tragedy is coming,
Stopped here,
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.