makepasswd
MAKEPASSWD and Pwgen work the same way, but the passwords it generates are not easy to remember. All passwords are randomly generated, and makepasswd is more security-oriented than Pwgen.Install MAKEPASSWD, enter at Terminal:
The code is
The Linux sed tool is very powerful and can be easily implemented to add content to the first or last line of a keyword. This feature was used today in bulk modifying tomcat logs.
Add content to the first or last line of a lineThe following actions
In Linux system Management, we sometimes need to kill a user of all processes, beginners generally first query out the user's all PID, and then kill, or write a script, in fact, there are ready-made methods, there are 4 ways, we take the kill user
When using Linux for embedded development, in order to facilitate development, the development Board is usually mounted on the host's file system, then the code is placed in the directory shared to the Development Board, and then run through the
1, view the disk
The code is as follows:
Df-h
2, view memory size
The code is as follows:
Free
free [-m|g]
Press MB,GB to display memory
The code is as follows:
Vmstat
Vmstat is used to view memory usage in real time, reflecting more intuitively than using top.If used directly, can only get the current situation, preferably with a time interval to collectVmstat T with a specific time indicator, the unit is seconds
General site need search function, if it is Php+mysql site, recommend the choice of Coreseek, if the Java site is recommended to use Lucene,coreseek is a very good Chinese full-text search/search software, support high-speed indexing, have a strong
Install Postfix
The code is as follows
Copy Code
Yum install postfix System-switch-mail
Set Postfix
The code is as follows
Copy Code
Vi/etc/postfix/main.cfMyhostname = ha.xxx.kh.edu.
1 The starting mode and execution order of Redhat are:
Loading the kernel to execute the INIT program/etc/rc.d/rc.sysinit # The first script executed by Init/ETC/RC.D/RC $RUNLEVEL # $RUNLEVEL is the default run mode/etc/rc.d/rc.local #相应级别服务启动之后,
Phenomenon:
1. External machine can not connect ssh properly
2, introverted outside can not normal ping through, domain name also can not normal parsing.
Problem Troubleshooting:
through NETSTAT-ANP | grep time_wait | wc-l command to view the
Today, a certain electrical and technical department leader found a problem, said their server hard drive full. The log files are deleted, but the hard disk space is still full. So df-h looked at the status of each mount point below (pictured below).
A very simple Linux tutorial, interested to see it!
If it is under the Xwindows interface, the whole operation is very simple, just like the operation under Windows. Now focus on the absence of a graphical interface, such as the installation of
The project is normal on the native test, ready to be deployed to the test server for internal testing, resulting in an error in deploying the settings environment.
The main is the compilation terminated caused by compilation errors in the Python
According to Wikipedia's interpretation, XZ is a lossless data compression file format using LZMA compression algorithms. As with gzip, BZIP2 supports multiple file compression, but the Convention does not compress more than one target file into the
Yesterday encountered a problem, in Linux there is a folder containing a large number of cache files (folders), the order of magnitude may be in millions, using RM-RF./* Delete Time is slow to unacceptable. Google for a while, found a way, the trial
The recent VPS often unstable, vps easy to die and no swap swap space, card after the death of automatic restart, the installation of CentOS when the MySQL did not boot up, resulting in each reboot can not access the Web site, must manually connect
StrutsConfiguration in web. xml: struts2 org. apache. struts2.dispatcher. ng. filter. StrutsPrepareAndExecuteFilter Classpath: struts. xml configurationSpring partConfiguration in web. xml WEB-INF/appCtx-*. xml contextConfigLocation org.
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