Due to work requirements, I recently studied OpenLDAP on RedHat (CentOS) and found that the configuration of 6.2 is very different from that of previous versions, especially 5.x.Introduction
The OpenLDAP software provided in Linux releases
First, perform the following steps:
(C ++ version), you must first install the JAVA environment JDK 1.6 or later, so the original JAVA environment must be upgraded, the idea was to upgrade the original JDK (gcj component), but later found that the
The centos system is installed with python 2.4 by default, so upgrade python to 2.7.5 first.
Reference: http://gavinshaw.blog.51cto.com/385947/610585Download the new version of python1: [root @ wangyuelou ~] # Wget http://python.org/ftp/python/2.7.2/
The company has a dell server with four 1 TB hard disks and a raid 5 with a total capacity of about 2.99 TB. Before centos6 was released, we had to do our work on the raid layer, first, separate a small space to install the system. The remaining
Forgot the root password. Reset the root password of mysql: t
1. Modify the mysql configuration file my. cnf
1.In the [mysqld] section, add skip-grant-tables.
[Mysqld]Datadir =/var/lib/mysqlSocket =/var/lib/mysql.
The Lnmp configuration has set up nginx lnmp, as well as blogs and forums. I am doing this statically.
Create a discuz. conf file, wordpress. conf file, and nginx. conf file in the same folder. Place the file in the
1. User Management
2. User Group
3. Permission assignment
1. view User-related file commands:
1. cat
2. more
3. head/etc/passwd # view the top 10 lines of the file
4. head-2/etc/passwd # view the first two lines of the file
5. tail/etc/passwd #
1. What is an RPM package?
RPM is short for Red Hat Package Manager. It is intended to manage Red Hat software packages. As its name suggests, RPM is a software Package management tool contributed by Red Hat; mainstream Release versions such as
1. Process sorting by memory from large to small:Ps-eo "% C: % p: % z: % a" | sort-k5-nr
2. Check which processes are currently running; view the files opened by the process:Ps-A; lsof-p PID
3. Get the current IP address (learn the role of grep, awk,
1. swap Overview
Swap partition, that is, Swap zone. The role of Swap space can be simply described as: when the physical memory of the system is insufficient, a part of the physical memory needs to be released, for the currently running program.
Ssh Configuration
Host A: 10.0.5.199
Host B: 10.0.5.198
You need to configure host A to log on to host A and host B without A password.
First, make sure that the firewall of all hosts is disabled.
Run the following command on host:
1. $ cd ~ /. Ssh
2
This method is common in centos.
Method 1:GRUB: On the boot loader menu, type [e] to enter the editing mode. You will face a list of pilot projects. Find the following output line: kernel/vmlinuz-2.6.18-164.el5 ro root =/dev/vol/root rhgb quite
NAT configuration in Linux
1. You must install iptables.
RequiredIptablesOtherwise, nat cannot be configured.
# Iptables-v: view the iptables version.
2. Start Configuration
Configure NAT with dual NICs (single Nic is also available, but not
The whole process of uninstalling mysql under centos is recorded below. Some problems encountered during the uninstall process, so record them.[Root @ host ~] # Rpm-qa | grep mysqlmysql-server-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_
1. echo "aa"> test.txt and echo "bb"> test.txt //> clear the original file and write the content to the file.> put the content at the end of the file.
2. chmod go + w-R/home/zhangy // Add write permissions to group users and other users
3, tar-tzvf
For this Tar command, we use it to package files rather than compress and decompress files. The biggest role of this command should be to back up website data. I am used to first package Tar data and then back up VPS wget, here we will share with
Pack all files in the/homef Directory into A. tar file.
1 $ tar-cvf test.tar/home /*
A file named test.tar will be obtained.
Pack all files in the/homecatalog into a tar.gz file.
1 $ tar-czf test.tar.gz/home /*
A test.tar.gz file will be
Whether it is Linux automatic installation or manual installation, Linux will ask you about network problems and configure related software. The basic command used to configure the NIC is ifconfig.
After executing the ifconfig command, the system
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