Sometimes when we open a terminal to execute a command, the following things can happen, such as the source WDCP:
Installing mysql,this a few minutes,hold on plz ...
Configure in progress ...
Make in progress ...
0$ lanmp* (leinterest/1.16 1.22 1.09)
This interface has been stopped for a long time, and we don't know if it's running at this point:
[Email protected] ~]# W
11:37:39 up 1:43, 2 users, load average:1.29, 1.17, 1.02
USER TTY from [email protected] IDLE jcpu PCPU
Root pts/1 x.x.x.x:s 10:38 55:04 6.16s 0.00s/bin/bash
Root PTS/2 x.x.x.x 11:33 0.00s 0.15s 0.02s W
Locate the TTY for the corresponding terminal, and then:
[[email protected] ~]# Watch ' PS aux|grep pts/1 '
Every 2.0s:ps aux|grep pts/1 Mon Feb 22 11:45:22 2016
Root 6482 0.0 0.3 108304 1884 PTS/1 Ss 10:38 0:00/bin/bash
Root 6495 0.0 0.1 108304 The PTS/1 s+ 10:38 0:00/bin/bash
Root 6496 0.0 0.3 106332 1748 pts/1 s+ 10:38 0:00/bin/bash./lanmp.sh
Root 6497 0.0 0.1 100912 660 pts/1 s+ 10:38 0:00 Tee lanmp_ins.log
Root 11114 0.0 0.1 106064 680 pts/1 s+ 11:43 0:00/bin/sh-c failcom= ' exit 1 '; \?for f in X $MAKEFLAGS; Do \? Case $f in \? *=* | --[!k]*);; \? *k*) failcom= ' fail=yes ';; \? Esac
Root 11115 0.0 0.2 101472 1452 pts/1 s+ 11:43 0:00 make all
Root 11171 0.0 0.2 101576 1476 pts/1 s+ 11:43 0:00 make all-recursive
Root 11172 0.0 0.2 106064 1384 pts/1 s+ 11:43 0:00/bin/sh-c failcom= ' exit 1 '; \?for f in X $MAKEFLAGS; Do \? Case $f in \? *=* | --[!k]*);; \? *k*) failcom= ' fail=yes ';; \? Esac
Root 11178 0.0 0.3 101576 1548 pts/1 s+ 11:43 0:00 make All-am
Root 11524 0.0 0.1 101144 880 pts/1 s+ 11:44 0:00 g++-dmysql_server-ddefault_mysql_home= "/www/wdlinux/mys ql-5.1.69 "-dmysql_datadir="/www/wdlinux/mysql-5.1.69/var "-dsharedir="/www/wdli
Root 11525 90.6 25.9 242272 130292 pts/1 r+ 11:44 0:29/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/cc1plus-quiet -I.-I.. /include-i. /include-i. /include-i. /regex-i.-MD ITEM.D-MF. deps/
Root 11532 1.5 0.4 108208 2052 pts/2 s+ 11:45 0:00 watch PS aux|grep pts/1
Root 11556 0.0 0.2 106060 1280x720 pts/2 s+ 11:45 0:00 sh-c PS aux|grep pts/1
Root 11558 0.0 0.1 103308 896 pts/2 s+ 11:45 0:00 grep pts/1
Root 24143 0.0 0.2 101180 1076 pts/1 s+ 10:48 0:00 make
Root 24144 0.0 0.2 106064 1380 PTS/1 s+ 10:48 0:00/bin/sh-c failcom= ' exit 1 '; \?for f in X $MAKEFLAGS; Do \? Case $f in \? *=* | --[!k]*);; \? *k*) failcom= ' fail=yes ';; \? Esac
At this point, the interface will show the process that PTS/1 is running, and if there is a change, the process is running, and if it has not changed for a long time, consider whether the process has been hung out.
See if the terminal process is dead skill