/Configure is the first step in source code installation. It mainly serves to configure the software to be installed and check whether the current environment meets the dependency of the software to be installed, but not all tar packages are source
Linux centos shutdown and restart commandsLinux centos restart command:1. reboot normal restart2. shutdown-r now restarts immediately (used by the root user)3. shutdown-r restarts automatically after 10 minutes (used by root users)4. shutdown-r
Before installing the environment or helping others handle the Centos system, to "seat the check", reduce problems caused by incompatibility between the Linux system version and the software, taking a proper look at the Linux release version and
Linux and Windows also have the IP configuration function. You can use DHCP to automatically obtain or manually specify an IP address. In Linux, how does one modify the nic ip address?1. configuration file path
cd
Format: tar option file directory listFunction: Package and back up the file directory.Option:-C create a new archive file-R: append an object to the end of the archive object-X solve the file from the archive file-O unlocks the file to the standard
Enable port 80 access in CentOS firewall settings
The following is an example of adding port 80:
[Root @ centos httpd] #/sbin/iptables-I INPUT-p tcp -- dport 80-j ACCEPT
Save
[Root @ centos httpd] #/etc/rc. d/init. d/iptables save
Iptables: Save the
View the size of the linux File directory and the number of files contained in the folderTotal statistics sizeDu-sh * // * indicates all directories currently.Du-sm * | sort-n // count the current directory size and sort the directory size.Du-sk * |
1. Get the process PID and kill-s-9 pid to kill the process.
1. ps-ef
[root@justin conf]# ps -efUID PID PPID C STIME TTY TIME CMDroot 1 0 0 14:09 ? 00:00:02 /sbin/initroot 2 0 0 14:09 ? 00:00
During the O & M work, we found that the Linux system cannot be immediately put into the production environment after installation, which usually requires optimization by our O & M personnel.
Next, I will briefly explain some basic optimization
Linux File Search:
Locate: non-real-time search, based on the database (FAST); fuzzy search;
Find: Real-time search, accurate matching, slow speed;
Find [locate] [search criteria] [processing actions]
Location: the current directory is used by
Whereis command
Function Description: The whereis command locates executable files, source code files, and help files in the file system. The attributes of these files should belong to the original code, binary file, or help file. The whereis
Free-m check whether swap is larger than the memory size; otherwise, swap should be expanded.Swapoff-Cd/Mkdir swapCd swapDd if =/dev/zero of = swapfile bs = 1 M count = 4096Mkswap swapfile# Activate a swap fileSwapon swapfileFree-m
Directly copy
Hello everyone, yesterday, a colleague used the administrator user (root) in linux to delete the root directory (rm-rf/home/tong) of another user. All files cannot be retrieved, I found Baidu and Gu Ge and finally solved this problem. Now I have
Sometimes, when CentOS is installed, the default language is set to Chinese, while some SSH software does not support Chinese encoding, so some garbled characters may occur during Remote Management. How can I modify the default CentOS language? Use
The following operations are completed through actual operations.
The following example shows how to allocate 5g of the home space to the root space.
[Root @ localhost ~] # Df-h
File System capacity in use available % mount
Run the command: netstat-tunlp will display all ports and all corresponding programs. You can use the grep pipeline to filter out the desired keyword segments. For programs occupying port 22: Copy code example: [root @ leiwan tmp] # netstat-tunlp |
We often encounter this problem. We used ssh to log on to a remote Linux server and run some time-consuming tasks. As a result, the task failed midway through due to unstable network conditions.This is because when a user logs out or the network is
In linux, free is usually used to view the memory status.What is the difference between cached and buffers in the free command of linux?FreeMem: physical memory statistics-/+ Buffers/cached: indicates the cache statistics of physical memory.Swap:
The CentOS community downloads all the source code on the Redhat website and recompiles it. Because AS/ES/WS is a commercial product, you must change all Redhat logos and logos to your own CentOS logos. For example, after compiling the original SRPM
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