Step1. System Mount Data diskDf-h, the data disk is not visible.Fdisk-l, you can see the data diskExecute the "fdisk-s 56/dev/xvdb" command to partition the data disk;According to the prompts, enter "n", "P" "1", two times carriage return, "Wq", the
(1)/boot partition (not required): The/boot partition is used to boot the system, which contains the kernel of the operating system and the files to be used during the startup of the system.The size of the partition is typically 100MB.
(2) Swap
① Modify the maximum number of files that can be opened by the server open files, because the Linux socket is also file, so this parameter has a direct impact on the number of network connections, the general machine is 1024, can be set to
To edit a DHCP service configuration file
Vim/etc/dhcp/dhcpd.conf added at the endLog-facility Local4;Edit Rsyslog service profile, modify/var/log/messages join Local4.none/var/log/messagesVim/etc/rsyslog.conf Join# Save DHCPD messages also to
Set up startup Coreseek service, here must add –pidfile file, lest the shell from start cannot find process PID.
The code is as follows
Copy Code
Vi/etc/rc.local (or
Whim, want to learn python, I heard it is good to do reptiles. Starting with the running environment, Python is already built into the CentOS, but the version seems older and the version is 2.4.3 through the PYTHON-V command. The current version of
After installing the Nginx, the reboot requires "Kill-hup Nginx process number" to reload, which is obviously inconvenient. It would be much easier to manage it directly through scripting, like Apache.
Nginx official had already thought well, also
Method One, get the inode number to delete the garbled filename file by Ls-li, for example, get 123456Perform deletes
Find./-inum 123456-exec RM-RF {}\;Note: after "{}", empty a grid and add "\;".
Method Two, when the file name is garbled, can not
Description
As of the current CentOS 7.x latest version of CentOS 7.0, the following describes the CentOS 7.0 of the specific installation configuration process
Server-related settings are as follows:
Operating system:
TarFormat: tar [options] [file directory list]Function: Package A backup of the file directoryOptions:-C to create a new archive file-R appending files to the end of the archive file-X Extract files from archive-O unlocking files to standard
Nginx CentOS Service boot Setup
Create a service file
Taking Nginx as an example
Vim/lib/systemd/system/nginx.service
Insert content in Nginx.service
[Unit]
Description=nginx
after=network.target
[service]
type=forking
execstart=
Now share the installation process:
1, the first to minimize the installation of CentOS 5.4, do not choose anything
2, set CentOSCENTOS5, this place changes, not in the installation of the process settings, but the system is installed, the first
Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the
Configure SSH without logon verification, in many scenarios is very convenient, especially in the management of large cluster services, avoid cumbersome password verification, the higher the security level of the server, the usual password settings
Introduction of VarnishVarnish is a high-performance, open source reverse proxy server and caching server, its developer Poul-henning Kamp is one of the FreeBSD core developers.Varnish mainly runs two processes: the management process and the child
1. Configure DNSVim/etc/resolv.confNameServer 192.168.0.1NameServer 8.8.8.8NameServer 8.8.4.42. Configure the Gatewayroute add default GW 192.168.1.1 Dev eno*This changes the gateway to 192.168.1.1 , which is only temporary, when you restart the
Upgrading the kernel requires the use of Elrepo's Yum source first we import the Elrepo keyRpm–import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Upgrading the kernel requires the use of Elrepo's Yum source
First we import
After the Centos system is customized, toolkit may be added later due to the company's needs. At this time, how should we provide this toolkit separately and install the required dependency packages. The following are several cases: 1. When
Linux has two types of time: system time and hardware Time (BIOS time ).The system reads the BIOS time every time it starts and assigns it to the system time. The system time will run independently, but the BIOS time will not change.There are two
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.