Server do Web application (http/nginx) Linux kernel parameter optimizationUnder Linux systems, when a TCP connection disconnects, it retains a certain amount of time in the TIME_WAIT state before the port is released. When there are too many concurrent requests,Will generate a large number of time_wait state connections, can not be broken in time, it will occupy a large number of port resources and server r
This script was found on GitHub stub.sh :#!/bin/shMyself= ' which"$" 2>/dev/null ' [$?-GT 0 -A - F "$"] myself="./$"Java=javaifTest-n"$JAVA _home"; ThenJava="$JAVA _home/bin/java"fiexec "$java" $java _args-jar$MYSELF "[email protected]"Exit 1For example, if you have a java -jar jar package that you can execute app.jar , just execute:cat stub.sh app.jar > app.run chmod +x app.runThen you can directly./app.runRun your Java program. If you are adding a VM parameter, you can add it to the first l
This article describes how to simplify the steps for logging on to a Linux host from a Mac to improve efficiency. The so-called "login-free" does not actually exist. It just means that the password authentication method is changed to the public/private key pair login authentication method. When the latter method is used, the authentication information is automatically sent by the ssh client each time, so the password is not manually entered. It looks
Basic principles of Linux:1. Consists of a small program with a single target, combined with a small program to complete complex tasks;2. All Documents3. Try to avoid capturing the user interface;4. Save the configuration file in plain text formatGUI interfaceCLI interfaceCommand prompt, prompt #:root $: Normal user Command->shell Send to kernelCommand format:Command option Parameters short option: -character multiple
Linux Fundamentals1. The freedom to run the program for any purpose2. The freedom to learn and modify the source program3. The freedom to redistribute programs4. The freedom to develop derivative versions based on a source programThe Basic Law:1. All Documents2. Short-sized and single-purpose programs3. Combine small programs to complete miscellaneous tasks4. Avoid capturing the user interface as much as possible5. Save the configuration data to a tex
-tulnp #vi /etc/my.cnf #确保skip-networking is removed or blocked, otherwise TCP/IP is not supported Visit; #bind-address Delete the row or change the IP to client ip #重启mysqld服务 #mysql -uroot-p #use mysql #grant allprivilegeson*.*toidentifiedby ' 123456 '; #grant NBsp;allprivilegeson*.*toidentifiedby ' 654321 '; # (above 130 two database user root and zsh) #flush privileges; #重启mysqld服务 #客户端 ping192.168.150.131 mysql-uroot-h192.168.150.131-pmysql-uroot -h192.168.150.131-p #8. Uninstall
finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x Finalshell_install.sh;sudo. finalshell_install.shLinux one-click installation Script 1 (Universal)Rm-f finalshell_install.sh; wget finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x Finalshell_install.sh;sudo./finalshell_install.shLinux one-click installation Script 2 (suitable for systems without sudo or not joining sudoer, such as Debian)Rm-f finalshell_install.sh; wget finalshell_instal
Zookeeper
-- How to view memory consumption of a single process at the OS level
AIX:
$ Svmon-Pt10 | perl-e 'while (-------------------------------------------------------------------------------Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16 MB5111942 svmon 22446 8768 0 22370 Y N4391128 ksh 18298 8724 0 18232 N5308430 perl5.8.8 18262 8724 0 18245 N
AIX: (available in linux)$ Ps gvPid tty stat time pgin
Automatic logon configuration on Linux OS1. Regarding to DSA:A) Ssh-keygen-t DSAb) Cat ~/.ssh/id_dsa.pub | SSH 2. Regarding to RSA:A) ssh-keygen-t RSAb) Ssh-copy-id 3. Switching different nodenode= Automatic logon configuration on Linux OS
Note: Launchpad icon additions and deletions under Mac are related to app files, if you simply want to add a custom icon to Launchpad, and then specify that you want a command to run, it is not recommended to do so. Launchpad's icon management is not as simple as Linux, and the operation is complex.General Method:Add, deleteSimply drag the downloaded app file into the app and delete the app file will also delete the Launchpad icon.Unconventional metho
Linux signal list, linux signal list
In Linux, each signal name starts with a letter SIG, and each signal corresponds to a digital code. In the header file signum. h, these signals are defined as positive integers. Signal name definition path:/usr/include/i386-
Two. To view the Linux version:1) Log in to the server to perform lsb_release-a and list all version information, for example:[Email Protected]_sys ~]# lsb_release-aLSB Version:: core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32: Graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarchDistributor Id:redhatenterpriseasdescription:red Hat Enterprise
The clinical symptom is that the hard disk has a metal hitting sound, which is the back-to-position sound of the head,One BuG. In fact, the bug is only an energy-saving function in hard disk power management. After the head is restored, it is used to stop the hard disk.
Mac OS X solution, InstallationHdpamHttp://mckinlay.net.nz/hdapm
This problem also occurs in Linux. The solution isHdparm-B 254/dev/sdx
1. First run the following commandsudo apt-get install wget BC build-essential gawk genisoimage2. Download the following resources and make allHttp://pan.baidu.com/s/1nvc09ypOriginally there are two of these are enough, released when it came to a less than 150 words, the contents of all lost, no way, had to say a little nonsense.The first one is still speechless.The second, I believe can help you, because the download, especially syslinux time-consuming and unsuccessful, very unfriendly. and Bai
Command-line Operation SVN does not use the interface form of the tortoisesvn intuitive, but anyway, the command line Operation SVN still has it a bit, if you encounter a need SVN add many files what to do? The following commands can help you solve this problemAdd all new files to the SVN repository at once:awk ' {if (= = = "?") {print $}} ' xargs svn addDelete all files that need to be deleted from SVN library at onceawk ' {if (= = = "!") {print $}} ' Xargs RMFinally submit your changes directl
2014
[Root@localhost test]#
Instance 3: The contents of the file other than the last n bytes
Command:
Head-c -32 Log2014.log
Output
[Root@localhost test]# head-c -32 log2014.log
2014-01
2014-02
2014-03
2014-04
2014-05
2014-06
2014-07
2014-08
2014-09
2014-10
2014-11
2014-12[root@localhost test]#
Instance 4: The output file contains all but the last n rows
Command:
Head-n-6 Log2014.log
Output:
[Root@localhost test]# head-n-6 Log2014.log
2014-01
2014-02
2014-03
2014-04
) generate a write_seqlock () in the xtime_lock sequence to protect timer-related kernel variables;
2) run the mark_offset method of the cur_timer timer object. The timer pointed to by cur_timer has been determined during timer initialization;
3) Call the do_timer_interrupt () function;
4) Call write_sequnlock to release the xtime_lock sequence lock;
5) return 1, and the report interruption has been effectively handled.
In Linux, two types of timers
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.