The safest way to kill a process is simply to use the KILL command, with no modifiers, no flags. First use the PS-EF command to determine the PID to kill the process, and then enter the following command: # kill-pid NOTE: Standard KILL command
Before the installation of Linux, at the start, every time to enabling Swap space to stay about 5 minutes.
The resolution process is as follows:
(1) View startup log Cat/var/log/boot.log
To see how long the system spends on that service at boot time
http://saber5d.blog.163.com/blog/static/12799877820115505714538/window Focus forward loop, there will be a pop-up icon ALT + Tab back loop, there will be a pop-up icon Alt+shift+tab Loop forward, no pop-up icon Alt+esc backward loop, no pop-up icon
I've tried the Mount U disk.When the boot mount the first U disk, the general equipment named SDA, and then Umount, and then insert another USB disk, and then mount, found that the device name became SDB.This test has been done several times, found
To configure the Java_home command under Linux:Java_home=/usr/java/jdk1.6.0_07 (after "=" is the JDK installation path)Export Java_home (this sentence to be added, let java_home output)* To set the java_home as a global variable you need to
The first step: Enter # semanage port-l|grep http command to see which ports
Part II: Add the port input you want # Semanage Port-a-T http_port_t-p TCP 8889
Part III: View again, enter # Semanage Port-l|grep http
Part Fourth: Modify firewall
1.Buddy System
The smallest unit of memory is page (4KB), which is based on the use of "partner system algorithm" to help manage different contiguous length of memory segments, 1,2,4,8,16,32,64,128,256,512 and 1024 consecutive page box block
1, the kernel provides two common caching scenarios for the device:
A, page caching (pages cache)
B, Block caching
2, the kernel manages the data structure used by the page cache
The kernel manages page caching through the cardinality tree
---View the default maximum number of file handles for the system, which defaults to 1024
# Ulimit-n
1024
----See how many handles are open for the current process
# Lsof-n|awk ' {print $} ' |sort|uniq-c|sort-nr|more
131 24204
57 24244
57 24231 ....
1. Create a table of contents
syntax: mkdir-p ——— continuous creation of directories and subdirectories
Mkdir-p Test/test1/test2
2. View the contents of a text file
(1) Cat
Cat [file]-------Show all the contents of the file
cat-n
1. View Linux version number
Cat/proc/version can display the Linux kernel version number. Is 3.12
2. View the CPU model
Cat/proc/cpuinfo
3. View CPU frequency, memory size and
1. Download (direct to Tsinghua image download) Download link, choose the right version, I tried a few, chose a download the fastest, forgive my slag speed, official website in foreign countries, must look for mirrors, otherwise very slow very
In contact with the SCM before the interruption of this noun, simple understanding, in the CPU normal running program A, suddenly inserted program B, program B can be understood as an interruption. An interrupt mechanism is also provided in the
After the CentOS operation is installed, the system has its own openjdk, first view the relevant installation information:
1. You can use the Java-version command to view the system's own version information with JDK
$ java-version
Java Version "1.7.
Method 1 in the terminal input command:
#./PSO > Pso.file 2>&1 &
Explanation: The PSO is run directly in the background and the terminal output is stored in the Pso.file file in the current directory.
When the client shuts down and then logs back
Show line number: Set nu in command mode
Navigate to the specified line:
Command mode,: N For example, think of Line 2nd,: 2
In edit mode, ngg like to think of 5th line 5gg (or 5G)
Opens the file to the specified line vim +n test.txt
View Current
Linux system startup and user Login process analysis:
First, the system starts the process
1. Loading kernel
2. Execute INIT Program
3,/etc/rc.d/rc.sysinit? Description: The first script executed by Init
4,/etc/rc.d/rc${runlevel}d/* Description:
LVM Logical Volume
new two partitions, change partition ID to 8e (LVM)
watch-n 1 ' pvs;echo====;vgs;echo====lvs;df-h/date ' Monitor command[Root@node2 ~]# mkdir/date Create a new mount directory
[Root@node2 ~]# PVCREATE/DEV/VDB1 Initializes a
I. The establishment of LVM
Partitioning physical partitions and modifying partition labels to LVM
[Root@server ~]# fdisk/dev/vdb
Command (M for help): T
Hex Code (type L to list all codes): 8e
PVCREATE/DEV/VDB1 # # #创建物理卷
[root@server206 ~]#
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