Add users under Linux: Useradd user nameAdd password for user name: passwd user NameTo view all users in the system: CAT/ETC/PASSWD |cut-f 1-d:Note: | is a pipe that transmits the cat's output to cut processing; The following cut takes out each line: the first column of the split.With the WHO command, you can see which users are currently logged on, and a user can log in multiple times, such as two root. A root in its local, a rootLog in remotely via
Cause: A server on the line, has always been a slow access to the situation, click a link for more than 2 seconds to open, according to our estimates of the number of visitors, the server should not respond so slow, so need to address this problem analysis, to solve the site visit too slow.
Analysis:
1, first of all, when the page access slows down, use the top command to view the server load situation, found that the load is not high, the initial est
View the total number of nginx connections and connection status:
# Netstat-N | awk '/^ TCP/{++ s [$ NF]} end {for (a in S) print a, s [a]}'
Time_wait 17
Established 3254
Last_ack 236
Fin_wait_1 648
Fin_wait_2 581
Closing 7
Close_wait 4916
Description:
Closed // No connection is active or in progress
Listen // the server is waiting for the incoming call
Syn_recv // a connection request has arrived, waiting for confirmation
Syn_sent // The
and each of its subtrees with 1024-byte blocks, enter:Du-k/home/franThis shows the number of 1024-byte disk blocks in the/home/fran directory and each of its subdirectories.To summarize disk usage for one directory tree and each of its subtrees through MB disk blocks, enter:Du-m/home/franThis shows the number of MB disk blocks (approximately the nearest second decimal number) in the/home/fran directory and each of its subdirectories.To summarize the disk usage of one directory tree and each of
Enable current view menu highlight (V2.0, )
Some time ago, Insus. NET shared a "Activate current view menu highlighting" http://www.cnblogs.com/insus/p/5287093.html, which is just a menu for the same controller.Today I will share an article that presents a website menu orientation with different controllers. Find a Web
First, view and manage the currently logged in user
1. Use the W command to view the process information that the logged-on user is using,and the W command to display the names of the users who have logged in to the system and what they are doing. The information used by this command originates from the/var/run/utmp file. The information for the W command output includes:
User name
U
One, view and modify the time zone of Linux 1. View current time zoneCommand: "Date-r"2. Modify the setup Linux Server time zone method ACommand: "Tzselect"Method B is limited to Redhat Linux and CentOSCommand: "Timeconfig"Method C applies to DebianCommand: "Dpkg-reconfigure tzdata"3. Copy the appropriate time zone file, replace the system time zone file, or crea
MySQL, database encoding is a very important problem, sometimes we need to look at the current database encoding, and even need to modify the database encoding.The SQL statements that view the current database encoding are:mysql> use xxxdatabase changedmysql> show variables like ' character_set_database '; +------------------------+--- -----+| variable_name | Val
Tags: cat alter ash machine spfile term text CLI OracleIt is useful to look at the connection of the data, finish writing the program while testing the code side to see the release of database connections to help optimize the analysis of a robust system program. 1. View the current number of database connections Select COUNT (*) from v$process; --Current number o
reproduced from: http://www.cnblogs.com/gaojun/archive/2013/10/24/3385885.html
first, view and manage the currently logged-on user
1. Use the W command to view the process information that the logged-in user is using,the W command to display the names of the users who have logged on to the system, and what they are doing. The information used by this command originates from the/var/run/utmp file. The info
Label:PostgreSQL see which references to the current table are referenced as reference tables--pg_constraint.contype:p (primary key), F (foreign key), U (unique), C (check)--View the current table IDSELECT OID, relname from pg_class WHERE relname = ' syslogfilter ';--View the primary foreign KEY constraint information
1. View the current number of concurrent accesses to Apache:Netstat-an | grep established | Wc-lCompare the number of maxclients in httpd.conf.2. How many processes are viewed:PS Aux|grep httpd|wc-l3, you can use the following parameters to view the dataServer-status?auto#ps-ef|grep Httpd|wc-l1388Count the number of httpd processes, and a single request initiates
First, view and manage the currently logged in user
1. Use the W command to view the process information that the logged-on user is using,and the W command to display the names of the users who have logged in to the system and what they are doing. The information used by this command originates from the/var/run/utmp file. The information for the W command output includes:
User name
U
Tags: ICA view CPU--top CPU release ASE BSP 4.01. View Cpu:top2. View current Linux version: Name-aTo view the currently running kernel version: Cat/pro/versionView release information: Cat/etc/issueView all information above: lsb_release-a3.
The DB2 command line introduced below is used to view the snapshot of the current system resource. This DB2 command line is for your reference and you may have a deeper understanding of the DB2 command line.
db2getmonitorswitches
db2updatemonitorswitchesusinglockon
db2updatemonitorswitchesusingstatementon
db2updatemonitorswitchesusingtableon
db2updatemonitorswitchesusingbufferpoolon
d
In the terminal, you can use the quser command. But how can you view online users in other professional versions such as 2 k?
C: Documents and SettingsAdministrator> net config workstationComputer Name \ RICHComputer full name richUser Name Administrator
The workstation is running onNetbiosSmb (000000000000)NetBT_Tcpip _ {57E2991D-AF22-41BA-89D7-2C2818051A47} (000B5DD3AC51)
Microsoft Windows Server 2003
WORKGROUPRICH Domains
COM open timeout (seconds)
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.