Today to introduce the specific practical functions of puppet, in fact, my understanding is how lazy, hehe.
1. Fill in the contents of the file:
(server):
To modify the server-side configuration file:
# VI/ETC/PUPPET/MANIFESTS/SITE.PP
----------
actual size resolution of partition type partition
Swap partition 2G (memory is 1G, generally twice times the memory)
/1g-2g (Minimum 150–250MB)
/boot 32m-100m (boot partition, up to 100M only)
/OPT 100m-1g (Additional application)
/tmp 40m-1000
Yum is the default package Manager on Red Hat based systems such as CentOS, Fedora, and RHEl. With yum, you can install or update an RPM package, and he will automatically resolve the package dependencies. But what if you just want to download an
Usually when you add a new hard drive to the virtual machine, you may see that the new hard drive is not loaded automatically. This is because the SCSI bus connected to the hard disk needs to be rescan to make the new hard drive visible. Here is a
The safest way to kill a process is simply to use the KILL command.
First use the PS-EF command to determine the PID to kill the process, and then enter the following command:
# Kill-pid
Note: The standard KILL command usually achieves the
Setting up SVN on Windows is simple, but not efficient, of course, compared to Linux. However, it is very cumbersome to build SVN on Linux, and this article will teach you step-by-step how to build svn on CentOS.
SOURCE directory:/home/user/project
CentOS Build FTP Server
1. Install VSFTPD
sudo yum install vsftpd
2. Configure vsftpd.conf
# Allow anonymous FTP? (beware-allowed by default if your comment this.
) Anonymous_enable=no
# When SELinux are enforcing check for SE bool
1. Install Nginx
1.1 Select stable version
We compile and install Nginx to customize our own modules, machines CentOS 6.2 x86_64 . First install the missing dependency pack:
# yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl
The Enterprise Linux distribution CentOS has released a new version 6.5.
CentOS 6.5 is based on the upstream version of EL6.5, and its major changes include:
Precision time Protocol has now been fully supported.
OpenSSL has been updated to
CentOS uses Pam to lock multiple login failed users
Linux has a pam_tally2.so Pam module that limits the number of user logon failures and, if the number reaches the set threshold, locks the user.
Compiling Pam's configuration file
#
Backup points
Consideration of backup Data
Problems caused by system corruption:
Hardware problem: Hard Drive damage
Software problems: Accidental deletion, security attack,
Different host roles, different backup tasks
Backup factor
Write to yourself, Linux OPS. Go through it.Linux:Centos7.3+apache+python3.4+django+mod_wsgi+sambawindows: Eclipse Pycharm SublimePython has been learning recently, although it is easier to develop under Windows, but in general, the program will
When centos 7 is started, the following message is displayed: "initial setup of centos linux 7 (core )"
After the CentOS7 system is updated, restart the system and report an error (initial setup of centos linux 7 (core ))
Solution:
Enter "1"
Solve the problem that openssl/opensslv. h cannot be found in centos.
Introduction: scrapy is the most famous crawler framework in Python. When installing scrapy, scrapy encountered a problem where a file of openssl could not be found, analyzed, and
Step 1: first create a CA certificate,First, create an RSA private key for the CA,# Cd/etc/pki/CA# Openssl genrsa-des3-out ca. key 1024(Because ssl_module in windows does not support encryption keys, use openssl genrsa-out ca. key 1024)The system
This problem occurs during updates.Error: Cannot retrieve repository metadata (repomd. xml) for repository: epel. Please verify its path and try againThis problem is very simple and obvious. SolutionRun the cleanup command,Yum clean metadataYum
I. Today, when I was on a small cloud host in yum, I encountered an error:$ Yum-y updateRpmdb: Thread/process 28636/139844750771968 failed: Thread died in Berkeley DB libraryError: db3 error (-30974) from dbenv-> failchk: DB_RUNRECOVERY: Fatal error,
The released space may come from some programs that haven't been operated for a long time. The released space is temporarily saved to the Swap space and will be executed by those programs, then, the stored data is restored from Swap to the memory.
Iptables is an IP information package filtering system integrated with Linux kernel. It comes with a firewall function. After configuring the server role function, we need to modify the iptables configuration.You must configure iptables for CentOS,
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.