1. View the number of ports in each state;
While true;
do
date;
Netstat-n | awk '/^tcp/{++state[$NF]} end {for (key) print key, "\ T", State[key]} ' I;
Sleep 2;
Done
Or
time=5;
While true;
Do
Linux First bullet
1. Learning of basic Instructions
ls-all lists all hidden files and related file attributes
Date shows current system timeFormat output:Date +%y/%m/%d 2018/04/13Date +%h:%m 11:17
echo $LANG View the current language and
Install **************************Outline:1. Create a non-root user2. Download Apache 2.0.54 and compile the installation3. Download svn 1.2.1 and compile the installation4. Add some directories and files5. Modify Apache configuration file http.conf6
Thread:
A What is a thread (TCB).
Threads are run within the process address space, emphasizing resource sharing (multiple threads share an address space). Linux is a process to simulate the thread, there is no real thread. A process is the basic
In Linux, each process is defined by the TASK_STRUCT data structure. Task_struct is what we usually call the PCB. She is the only means of controlling the process and the most effective means. When we call fork (), the system generates a task_ for
In a Linux system, a network adapter can set multiple IP.
Cd/etc/sysconfig/network-scripts
CP Ifcfg-ens33 ifcfg-ens33\:1
The backslash (\) is added because you want to escape it, otherwise it is not recognized on the Linux command line, and then
Programming under Linux, often encounter with time/timestamp related things, the following is my previous collection, put here to share.
In the FILE:DBUS-SYSDEPS-UNIX.C
/*** Get Gettimeofday ().** @param tv_sec return location for
1.sudo: Get root permission, but need to enter password;
2.cd.. \ CD [Directory]: Access directory;
3.rm [file]: delete a file;
\ rm-r [contents]: Delete all of the directory layers at the same time
\ RM-RF [Directory]: Delete all the directory
Using LibreOffice to draw a table is really a bit of a pain in the egg, inefficient. deep understanding of computer system-> virtual memory Kernel Virtual Storage
The operating system process time is user state and kernel state. In virtual storage,
1. Download Tomcat
2. Extract Tomcat Rename to Dubbo-admin-tomcat
TAR-ZXVF apache-tomcat-7.0.57.tar.gz
MV apache-tomcat-7.0.57 dubbo-admin-tomcat
3. Remove all files from the Tomcat WebApps directory
CD Dubbo-admin-tomcat/webapp
4. Upload the
Author: Sandy Original works reproduced please indicate the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000 " Experimental Environment: c+ Linux64 bit (32-bit system may result in different) in
recently in research Jarsigner APK, found that Jarsigner command was not found, and later found that I was installed after the JDK environment variables are not configuredOn the Internet to find the relevant information,
Command:
Ulimit-a is used to display current user process restrictions;
1 Remove the maximum number of processes and maximum file opening limits for Linux systems:
Vi/etc/security/limits.conf
# Add the following line
* Soft Noproc 11000
* Hard
How to view the libraries that Linux programs or processes use (Shared library dependencies).
View shared library dependencies for an executable program
To find a library of specific executable dependencies, you can use the LDD command. This
Directory
the realization of the general version progress bar
Create a PROCESS.C C program file in the process directory to create a makefile file that implements the ability to compile PROCESS.C C code
the realization of color progress bar
Linux
Nginx static file processing ability is very good, we can further optimize it. The reading of static files will consume IO resources. Consider moving a static file into Linux memory, which should be much better if you read the resource from memory
LVM is a mechanism for dynamically adjusting the way Linux partitions are partitioned. Logical volumes can be read and write efficiently without the high average disk, but the dynamic management of disk space is a more flexible way to manage the
This paper mainly analyzes the synchronization and mutual exclusion mechanism between multiple producers, multiple consumers and multiple resources.
In the operating system, we've learned about the synchronous mutex model between producer and
The 1,linux kernel must be configured correctly in the file Systems->network file systems---> (y) Provide NFSV3 client support, (Y) provide NFSv4 NT Support (experimental), these two must be configured correctly. Deny that this error will occur:
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