docker 学习操作记录 5-1

爱⌒轻易说出口 提交于 2019-12-06 16:25:48

记录5-1

  1 [BEGIN] 2019/12/5 10:21:32
  2 Connecting to 192.168.114.130:22...
  3 Connection established.
  4 To escape to local shell, press Ctrl+Alt+].
  5 
  6 Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-72-generic x86_64)
  7 
  8  * Documentation:  https://help.ubuntu.com
  9  * Management:     https://landscape.canonical.com
 10  * Support:        https://ubuntu.com/advantage
 11 
 12  * Overheard at KubeCon: "microk8s.status just blew my mind".
 13 
 14      https://microk8s.io/docs/commands#microk8s.status
 15 
 16 3 个可升级软件包。
 17 0 个安全更新。
 18 
 19 New release '18.04.3 LTS' available.
 20 Run 'do-release-upgrade' to upgrade to it.
 21 
 22 Last login: Wed Dec  4 15:40:43 2019 from 192.168.114.1
 23 root@coder:~# ls
 24 root@coder:~# 
 25 root@coder:~# 
 26 root@coder:~# 
 27  * Overheard at KubeCon: "microk8s.status just blew my mind".
 28      https://microk8s.io/docs/commands#microk8s.status
 29 3 个可升级软件包。
 30 0 个安全更新。
 31 New release '18.04.3 LTS' available.
 32 Run 'do-release-upgrade' to upgrade to it.
 33 Last login: Wed Dec  4 15:40:43 2019 from 192.168.114.1
 34 root@coder:~# ls
 35 root@coder:~# 
 36 root@coder:~# 
 37 root@coder:~# 
 38 root@coder:~# su - coder
 39 -->@coder:~$ sudo systemctl start docker
 40 [sudo] coder 的密码: 
 41 -->@coder:~$ sudo docker search lvs
 42 NAME                        DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
 43 lvsir625/rancher-server                                                     1                                       
 44 livesafe/lvsf-mysql         Based off the official MySQL container, adds…   1                                       
 45 lvsir625/rancher-agent                                                      1                                       
 46 lvstest/hello-world                                                         0                                       
 47 lvstest/grafanapoc                                                          0                                       
 48 wuhanqing/lvs                                                               0                                       
 49 saiwl/lvs-apiserver                                                         0                                       
 50 lvshao/lvtest                                                               0                                       
 51 fanux/lvscare                                                               0                                       
 52 lvsz/node-hello                                                             0                                       
 53 lvsir625/tomcat-ssh-new                                                     0                                       
 54 lvseav2  ray/seav2  ray         lvseav2  ray                                      0                                       [OK]
 55 lvsir625/test                                                               0                                       
 56 lvsavova/sinatra                                                            0                                       
 57 lvschnider/docker-whale     my docker-whale brah                            0                                       
 58 lvsmart/get-started                                                         0                                       
 59 lvsir625/registry                                                           0                                       
 60 lvshuaijun/get-started                                                      0                                       
 61 lvsir625/java-nscd                                                          0                                       
 62 lvsotos/flaskapp                                                            0                                       
 63 lvstest/maven-hello-world                                                   0                                       
 64 lvsir625/tomcat-ssh                                                         0                                       
 65 lvsir625/tomcat                                                             0                                       
 66 shemic/lvs                                                                  0                                       
 67 lvsz/get-started                                                            0                                       
 68 -->@coder:~$ sudo docker search haproxy
 69 NAME                             DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
 70 haproxy                          HAProxy - The Reliable, High Performance TCP…   1318                [OK]                
 71 dockercloud/haproxy              HAProxy image that balances between linked c…   107                                     
 72 tutum/haproxy                    HAProxy image that load balances between any…   47                                      
 73 eeacms/haproxy                   HAProxy Docker image with docker links and r…   31                                      [OK]
 74 million12/haproxy                Fully customisable HAProxy load balancer bui…   19                                      [OK]
 75 yaronr/haproxy-confd             HAProxy with zero-downtime reconfiguration b…   13                                      [OK]
 76 arm32v7/haproxy                  HAProxy - The Reliable, High Performance TCP…   11                                      
 77 ciscocloud/haproxy-consul                                                        9                                       [OK]
 78 prom/haproxy-exporter                                                            6                                       [OK]
 79 arm64v8/haproxy                  HAProxy - The Reliable, High Performance TCP…   5                                       
 80 mminks/haproxy-docker-logging    Latest Alpine-based official HAProxy image w…   4                                       [OK]
 81 haproxytech/haproxy-debian       HAProxy Community Edition Debian amd64 builds   2                                       
 82 appcelerator/haproxy             haproxy image for AMP. Deprecated.              1                                       [OK]
 83 haproxytech/kubernetes-ingress   HAProxy ingress controller for K8s              1                                       
 84 amd64/haproxy                    HAProxy - The Reliable, High Performance TCP…   1                                       
 85 aaionap/haproxy                  AAI Haproxy                                     0                                       
 86 hivesolutions/haproxy            A fork of the haproxy repo.                     0                                       [OK]
 87 travix/haproxy                   Haproxy container for tls termination inside…   0                                       [OK]
 88 jelastic/haproxy                 An image of the HAProxy load balancer mainta…   0                                       
 89 elasticio/haproxy-srv            Flexible HAProxy auto configuration and auto…   0                                       [OK]
 90 ppc64le/haproxy                  HAProxy - The Reliable, High Performance TCP…   0                                       
 91 kontena/haproxy                                                                  0                                       
 92 s390x/haproxy                    HAProxy - The Reliable, High Performance TCP…   0                                       
 93 anchorfree/haproxy-exporter                                                      0                                       
 94 i386/haproxy                     HAProxy - The Reliable, High Performance TCP…   0                                       
 95 -->@coder:~$ sudo docker images -q
 96 22628d6caa61
 97 fec6dab28edf
 98 4afd6b31fab7
 99 50776ea0e5a4
100 56bab49eef2e
101 231d40e811cd
102 965ea09ff2eb
103 0f3e07c0138f
104 4621d4fe2959
105 -->@coder:~$ sudo docker images -h
106 Flag shorthand -h has been deprecated, please use --help
107 
108 Usage:    docker images [OPTIONS] [REPOSITORY[:TAG]]
109 
110 List images
111 
112 Options:
113   -a, --all             Show all images (default hides intermediate images)
114       --digests         Show digests
115   -f, --filter filter   Filter output based on conditions provided
116       --format string   Pretty-print images using a Go template
117       --no-trunc        Don't truncate output
118   -q, --quiet           Only show numeric IDs
119 -->@coder:~$ sudo docker images
120 REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
121 myweb                         v1                  22628d6caa61        18 hours ago        134MB
122 myip                          latest              fec6dab28edf        18 hours ago        139MB
123 ngingx                        v3                  4afd6b31fab7        20 hours ago        126MB
124 nginx                         v2                  50776ea0e5a4        21 hours ago        126MB
125 ubuntu                        16.04               56bab49eef2e        8 days ago          123MB
126 nginx                         latest              231d40e811cd        12 days ago         126MB
127 alpine                        latest              965ea09ff2eb        6 weeks ago         5.55MB
128 centos                        latest              0f3e07c0138f        2 months ago        220MB
129 ansible/ubuntu14.04-ansible   latest              4621d4fe2959        4 years ago         461MB
130 -->@coder:~$ sudo docker search ubuntu:14.04
131 NAME                                 DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
132 edse/ubuntu-nginx-mysql-php-nodejs   Docker container built from Ubuntu:14.04 wit…   15                                      [OK]
133 blacktobacco/ajenti                  Ajenti web hosting panel server based on Ubu…   7                                       [OK]
134 codebje/ihaskell                     Ubuntu:14.04 with Jupyter, stack, GHC, and I…   2                                       [OK]
135 leslau/nxlog                         nxlog ce image base on ubuntu:14.04             2                                       [OK]
136 pkubicki/atom-rc-base                Open SSH with SASS and RSYNC installed on Ub…   1                                       
137 jorgeluisrmx/ubuntu-dev-base         Ubuntu:14.04 + C/C++ Python  dev libs image     1                                       [OK]
138 bohanzhang/ubuntu_cn                 国内用户的Ubuntu Dockerfile 基于 ubuntu:14.04          1                                       [OK]
139 nuagebec/etcd                        etcd image for docker build on nuagebec/ubun…   1                                       [OK]
140 jorgeluisrmx/ros-indigo              ROS Indigo on Ubuntu:14.04                      1                                       [OK]
141 takeharu/ubuntu-mysql                MySQL on Ubuntu:14.04                           1                                       [OK]
142 mikefaille/etcd                      etcd image for docker build on nuagebec/ubun…   1                                       [OK]
143 jcirizar/devimg                      Ubuntu:14.04 with NVM and more.                 1                                       [OK]
144 bleaf/ubuntu-ko                      ubuntu:14.04 ko nginx php5                      0                                       [OK]
145 mrhub/snort                          snort on ubuntu:14.04                           0                                       [OK]
146 letterer/swift-docker                ubuntu:14.04 with Apple swift                   0                                       [OK]
147 savaki/dynamodb                      DynamoDB using ubuntu:14.04 and oracle-java8    0                                       [OK]
148 bdkdevorg/bm.docker.varnish          ubuntu:14.04, varnish, curl, supervisor         0                                       [OK]
149 zeerdonker/docker-oracle-java        ubuntu:14.04 based oracle-java 8 build          0                                       [OK]
150 webreactor/ubuntu                    Based on ubuntu:14.04 + git + curl + vim + n…   0                                       [OK]
151 meedan/base                          meedan base image FROM ubuntu:14.04             0                                       [OK]
152 slyn/mongodb                         mongodb - ubuntu:14.04                          0                                       [OK]
153 hieisky/ubuntu-base                  To build a ubuntu:14.04.4 base image.           0                                       [OK]
154 devorbitus/ubuntu-bash-jq-curl       Based on Ubuntu:14.04 and only adding curl a…   0                                       
155 pamtrak06/grass7-ubuntu14.04         grass7 under apache2 & ubuntu:14.04             0                                       [OK]
156 fiverun/ubuntu-java                  Dockerfile for ubuntu:14.04 and Java 8u66       0                                       [OK]
157 -->@coder:~$ sudo docker pull devorbitus/ubuntu-bash-jq-curl
158 Using default tag: latest
159 latest: Pulling from devorbitus/ubuntu-bash-jq-curl
160 Image docker.io/devorbitus/ubuntu-bash-jq-curl:latest uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
161 
162 Digest: sha256:1a97495ebe9ed3501e6fb6cf2722e741252db2145d7c27f65ece55ad800f4a54
163 Status: Downloaded newer image for devorbitus/ubuntu-bash-jq-curl:latest
164 docker.io/devorbitus/ubuntu-bash-jq-curl:latest
165 -->@coder:~$ sudo docker images
166 REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
167 myweb                            v1                  22628d6caa61        18 hours ago        134MB
168 myip                             latest              fec6dab28edf        19 hours ago        139MB
169 ngingx                           v3                  4afd6b31fab7        20 hours ago        126MB
170 nginx                            v2                  50776ea0e5a4        21 hours ago        126MB
171 ubuntu                           16.04               56bab49eef2e        8 days ago          123MB
172 nginx                            latest              231d40e811cd        12 days ago         126MB
173 alpine                           latest              965ea09ff2eb        6 weeks ago         5.55MB
174 centos                           latest              0f3e07c0138f        2 months ago        220MB
175 devorbitus/ubuntu-bash-jq-curl   latest              e76ba9b48002        3 years ago         224MB
176 ansible/ubuntu14.04-ansible      latest              4621d4fe2959        4 years ago         461MB
177 -->@coder:~$ sudo docker run e76b /bin/echo "hello world"
178 hello world
179 -->@coder:~$ sudo docker run -t -i e76b /bin/bash
180 root@53d0a643a2c7:/# pwd
181 /
182 root@53d0a643a2c7:/# ls
183 bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
184 root@53d0a643a2c7:/# du -sh *
185 6.3M    bin
186 4.0K    boot
187 0    dev
188 2.9M    etc
189 4.0K    home
190 24M    lib
191 4.0K    lib64
192 4.0K    media
193 4.0K    mnt
194 4.0K    opt
195 du: cannot access 'proc/16/task/16/fd/4': No such file or directory
196 du: cannot access 'proc/16/task/16/fdinfo/4': No such file or directory
197 du: cannot access 'proc/16/fd/3': No such file or directory
198 du: cannot access 'proc/16/fdinfo/3': No such file or directory
199 0    proc
200 12K    root
201 40K    run
202 6.8M    sbin
203 4.0K    srv
204 0    sys
205 4.0K    tmp
206 148M    usr
207 34M    var
208 root@53d0a643a2c7:/# ls -l
209 total 64
210 drwxr-xr-x   2 root root 4096 May  3  2016 bin
211 drwxr-xr-x   2 root root 4096 Apr 10  2014 boot
212 drwxr-xr-x   5 root root  360 Dec  5 02:40 dev
213 drwxr-xr-x   1 root root 4096 Dec  5 02:40 etc
214 drwxr-xr-x   2 root root 4096 Apr 10  2014 home
215 drwxr-xr-x   1 root root 4096 May 26  2016 lib
216 drwxr-xr-x   2 root root 4096 May  3  2016 lib64
217 drwxr-xr-x   2 root root 4096 May  3  2016 media
218 drwxr-xr-x   2 root root 4096 Apr 10  2014 mnt
219 drwxr-xr-x   2 root root 4096 May  3  2016 opt
220 dr-xr-xr-x 202 root root    0 Dec  5 02:40 proc
221 drwx------   2 root root 4096 May  3  2016 root
222 drwxr-xr-x   7 root root 4096 May  3  2016 run
223 drwxr-xr-x   1 root root 4096 May  3  2016 sbin
224 drwxr-xr-x   2 root root 4096 May  3  2016 srv
225 dr-xr-xr-x  13 root root    0 Dec  5 02:40 sys
226 drwxrwxrwt   1 root root 4096 May 26  2016 tmp
227 drwxr-xr-x   1 root root 4096 May 26  2016 usr
228 drwxr-xr-x   1 root root 4096 May 26  2016 var
229 root@53d0a643a2c7:/# cd proc
230 root@53d0a643a2c7:/proc# ls
231 1          cgroups   devices      fb           ioports    keys         loadavg  modules  pagetypeinfo  self      sys            tty                vmstat
232 18         cmdline   diskstats    filesystems  irq        kmsg         locks    mounts   partitions    slabinfo  sysrq-trigger  uptime             zoneinfo
233 acpi       consoles  dma          fs           kallsyms   kpagecgroup  mdstat   mpt      sched_debug   softirqs  sysvipc        version
234 buddyinfo  cpuinfo   driver       interrupts   kcore      kpagecount   meminfo  mtrr     schedstat     stat      thread-self    version_signature
235 bus        crypto    execdomains  iomem        key-users  kpageflags   misc     net      scsi          swaps     timer_list     vmallocinfo
236 root@53d0a643a2c7:/proc# ll
237 total 4
238 dr-xr-xr-x 202 root root    0 Dec  5 02:40 ./
239 drwxr-xr-x   1 root root 4096 Dec  5 02:40 ../
240 dr-xr-xr-x   9 root root    0 Dec  5 02:40 1/
241 dr-xr-xr-x   9 root root    0 Dec  5 02:41 19/
242 drwxrwxrwt   2 root root   40 Dec  5 02:40 acpi/
243 -r--r--r--   1 root root    0 Dec  5 02:41 buddyinfo
244 dr-xr-xr-x   4 root root    0 Dec  5 02:40 bus/
245 -r--r--r--   1 root root    0 Dec  5 02:41 cgroups
246 -r--r--r--   1 root root    0 Dec  5 02:41 cmdline
247 -r--r--r--   1 root root    0 Dec  5 02:41 consoles
248 -r--r--r--   1 root root    0 Dec  5 02:41 cpuinfo
249 -r--r--r--   1 root root    0 Dec  5 02:41 crypto
250 -r--r--r--   1 root root    0 Dec  5 02:41 devices
251 -r--r--r--   1 root root    0 Dec  5 02:41 diskstats
252 -r--r--r--   1 root root    0 Dec  5 02:41 dma
253 dr-xr-xr-x   2 root root    0 Dec  5 02:41 driver/
254 -r--r--r--   1 root root    0 Dec  5 02:41 execdomains
255 -r--r--r--   1 root root    0 Dec  5 02:41 fb
256 -r--r--r--   1 root root    0 Dec  5 02:41 filesystems
257 dr-xr-xr-x   8 root root    0 Dec  5 02:40 fs/
258 -r--r--r--   1 root root    0 Dec  5 02:41 interrupts
259 -r--r--r--   1 root root    0 Dec  5 02:41 iomem
260 -r--r--r--   1 root root    0 Dec  5 02:41 ioports
261 dr-xr-xr-x  56 root root    0 Dec  5 02:40 irq/
262 -r--r--r--   1 root root    0 Dec  5 02:41 kallsyms
263 crw-rw-rw-   1 root root 1, 3 Dec  5 02:40 kcore
264 -r--r--r--   1 root root    0 Dec  5 02:41 key-users
265 crw-rw-rw-   1 root root 1, 3 Dec  5 02:40 keys
266 -r--------   1 root root    0 Dec  5 02:41 kmsg
267 -r--------   1 root root    0 Dec  5 02:41 kpagecgroup
268 -r--------   1 root root    0 Dec  5 02:41 kpagecount
269 -r--------   1 root root    0 Dec  5 02:41 kpageflags
270 -r--r--r--   1 root root    0 Dec  5 02:41 loadavg
271 -r--r--r--   1 root root    0 Dec  5 02:41 locks
272 -r--r--r--   1 root root    0 Dec  5 02:41 mdstat
273 -r--r--r--   1 root root    0 Dec  5 02:41 meminfo
274 -r--r--r--   1 root root    0 Dec  5 02:41 misc
275 -r--r--r--   1 root root    0 Dec  5 02:41 modules
276 lrwxrwxrwx   1 root root   11 Dec  5 02:41 mounts -> self/mounts
277 dr-xr-xr-x   3 root root    0 Dec  5 02:41 mpt/
278 -rw-r--r--   1 root root    0 Dec  5 02:41 mtrr
279 lrwxrwxrwx   1 root root    8 Dec  5 02:41 net -> self/net/
280 -r--r--r--   1 root root    0 Dec  5 02:41 pagetypeinfo
281 -r--r--r--   1 root root    0 Dec  5 02:41 partitions
282 crw-rw-rw-   1 root root 1, 3 Dec  5 02:40 sched_debug
283 -r--r--r--   1 root root    0 Dec  5 02:41 schedstat
284 drwxrwxrwt   2 root root   40 Dec  5 02:40 scsi/
285 lrwxrwxrwx   1 root root    0 Dec  5 02:40 self -> 19/
286 -r--------   1 root root    0 Dec  5 02:41 slabinfo
287 -r--r--r--   1 root root    0 Dec  5 02:41 softirqs
288 -r--r--r--   1 root root    0 Dec  5 02:41 stat
289 -r--r--r--   1 root root    0 Dec  5 02:41 swaps
290 dr-xr-xr-x   1 root root    0 Dec  5 02:40 sys/
291 --w-------   1 root root    0 Dec  5 02:40 sysrq-trigger
292 dr-xr-xr-x   2 root root    0 Dec  5 02:41 sysvipc/
293 lrwxrwxrwx   1 root root    0 Dec  5 02:40 thread-self -> 19/task/19/
294 crw-rw-rw-   1 root root 1, 3 Dec  5 02:40 timer_list
295 dr-xr-xr-x   4 root root    0 Dec  5 02:41 tty/
296 -r--r--r--   1 root root    0 Dec  5 02:41 uptime
297 -r--r--r--   1 root root    0 Dec  5 02:41 version
298 -r--r--r--   1 root root    0 Dec  5 02:41 version_signature
299 -r--------   1 root root    0 Dec  5 02:41 vmallocinfo
300 -r--r--r--   1 root root    0 Dec  5 02:41 vmstat
301 -r--r--r--   1 root root    0 Dec  5 02:41 zoneinfo
302 root@53d0a643a2c7:/proc# stat version
303   File: 'version'
304   Size: 0             Blocks: 0          IO Block: 1024   regular empty file
305 Device: 38h/56d    Inode: 4026532029  Links: 1
306 Access: (0444/-r--r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
307 Access: 2019-12-05 02:41:32.190873526 +0000
308 Modify: 2019-12-05 02:41:32.190873526 +0000
309 Change: 2019-12-05 02:41:32.190873526 +0000
310  Birth: -
311 root@53d0a643a2c7:/proc# cd ..
312 root@53d0a643a2c7:/# ls
313 bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
314 root@53d0a643a2c7:/# ps
315    PID TTY          TIME CMD
316      1 pts/0    00:00:00 bash
317     22 pts/0    00:00:00 ps
318 root@53d0a643a2c7:/# top
319 top - 02:42:38 up 21 min,  0 users,  load average: 0.08, 0.09, 0.06
320 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
321 %Cpu(s):  0.3 us,  0.9 sy,  0.1 ni, 97.5 id,  1.1 wa,  0.0 hi,  0.0 si,  0.0 st
322 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178456 buffers
323 KiB Swap:   999420 total,        0 used,   999420 free.  1034480 cached Mem
324 
325    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
326      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
327     23 root      20   0   19744   2340   2052 R   0.0  0.1   0:00.00 top                                                                                                            
328 top - 02:42:41 up 21 min,  0 users,  load average: 0.08, 0.09, 0.06
329 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
330 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
331 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178456 buffers
332 KiB Swap:   999420 total,        0 used,   999420 free.  1034492 cached Mem
333 
334    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
335      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
336     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
337 top - 02:42:44 up 21 min,  0 users,  load average: 0.07, 0.09, 0.06
338 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
339 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
340 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178464 buffers
341 KiB Swap:   999420 total,        0 used,   999420 free.  1034488 cached Mem
342 
343    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
344      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
345     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
346 top - 02:42:47 up 22 min,  0 users,  load average: 0.07, 0.09, 0.06
347 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
348 %Cpu(s):  0.1 us,  0.1 sy,  0.0 ni, 99.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
349 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178464 buffers
350 KiB Swap:   999420 total,        0 used,   999420 free.  1034496 cached Mem
351 
352    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
353      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
354     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
355 top - 02:42:50 up 22 min,  0 users,  load average: 0.07, 0.09, 0.06
356 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
357 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
358 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178472 buffers
359 KiB Swap:   999420 total,        0 used,   999420 free.  1034500 cached Mem
360 
361    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
362      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
363     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
364 top - 02:42:53 up 22 min,  0 users,  load average: 0.06, 0.09, 0.06
365 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
366 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
367 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178472 buffers
368 KiB Swap:   999420 total,        0 used,   999420 free.  1034500 cached Mem
369 
370    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
371      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
372     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
373 top - 02:42:56 up 22 min,  0 users,  load average: 0.06, 0.09, 0.06
374 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
375 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
376 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178480 buffers
377 KiB Swap:   999420 total,        0 used,   999420 free.  1034500 cached Mem
378 
379    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
380      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
381     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
382 top - 02:42:59 up 22 min,  0 users,  load average: 0.06, 0.09, 0.06
383 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
384 %Cpu(s):  0.1 us,  0.0 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
385 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178480 buffers
386 KiB Swap:   999420 total,        0 used,   999420 free.  1034504 cached Mem
387 
388    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
389      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
390     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
391 top - 02:43:02 up 22 min,  0 users,  load average: 0.06, 0.09, 0.06
392 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
393 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
394 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178488 buffers
395 KiB Swap:   999420 total,        0 used,   999420 free.  1034496 cached Mem
396 
397    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
398      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
399     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.00 top                                                                                                            
400 top - 02:43:05 up 22 min,  0 users,  load average: 0.05, 0.09, 0.06
401 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
402 %Cpu(s):  0.0 us,  0.2 sy,  0.0 ni, 99.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
403 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178488 buffers
404 KiB Swap:   999420 total,        0 used,   999420 free.  1034508 cached Mem
405 
406    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
407     23 root      20   0   19748   2356   2052 R   0.3  0.1   0:00.01 top                                                                                                            
408      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
409 top - 02:43:08 up 22 min,  0 users,  load average: 0.05, 0.08, 0.06
410 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
411 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
412 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178496 buffers
413 KiB Swap:   999420 total,        0 used,   999420 free.  1034508 cached Mem
414 
415    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
416      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
417     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
418 top - 02:43:11 up 22 min,  0 users,  load average: 0.05, 0.08, 0.06
419 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
420 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
421 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178496 buffers
422 KiB Swap:   999420 total,        0 used,   999420 free.  1034512 cached Mem
423 
424    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
425      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
426     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
427 top - 02:43:14 up 22 min,  0 users,  load average: 0.04, 0.08, 0.06
428 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
429 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni, 99.9 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
430 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178504 buffers
431 KiB Swap:   999420 total,        0 used,   999420 free.  1034516 cached Mem
432 
433    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
434      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
435     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
436 top - 02:43:17 up 22 min,  0 users,  load average: 0.04, 0.08, 0.06
437 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
438 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
439 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178504 buffers
440 KiB Swap:   999420 total,        0 used,   999420 free.  1034516 cached Mem
441 
442    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
443      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
444     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
445 top - 02:43:20 up 22 min,  0 users,  load average: 0.04, 0.08, 0.06
446 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
447 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
448 KiB Mem:   3050084 total,  1757904 used,  1292180 free,   178512 buffers
449 KiB Swap:   999420 total,        0 used,   999420 free.  1034516 cached Mem
450 
451    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
452      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
453     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
454 top - 02:43:23 up 22 min,  0 users,  load average: 0.04, 0.08, 0.06
455 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
456 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
457 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178512 buffers
458 KiB Swap:   999420 total,        0 used,   999420 free.  1034520 cached Mem
459 
460    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
461      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
462     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
463 top - 02:43:26 up 22 min,  0 users,  load average: 0.04, 0.08, 0.06
464 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
465 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
466 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178520 buffers
467 KiB Swap:   999420 total,        0 used,   999420 free.  1034520 cached Mem
468 
469    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
470      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
471     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
472 top - 02:43:29 up 22 min,  0 users,  load average: 0.03, 0.08, 0.06
473 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
474 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
475 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178520 buffers
476 KiB Swap:   999420 total,        0 used,   999420 free.  1034524 cached Mem
477 
478    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
479      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
480     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
481 top - 02:43:32 up 22 min,  0 users,  load average: 0.03, 0.08, 0.06
482 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
483 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
484 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178528 buffers
485 KiB Swap:   999420 total,        0 used,   999420 free.  1034516 cached Mem
486 
487    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
488      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
489     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
490 top - 02:43:35 up 22 min,  0 users,  load average: 0.03, 0.08, 0.06
491 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
492 %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
493 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178528 buffers
494 KiB Swap:   999420 total,        0 used,   999420 free.  1034528 cached Mem
495 
496    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
497      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
498     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            
499 top - 02:43:38 up 22 min,  0 users,  load average: 0.03, 0.08, 0.06
500 Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
501 %Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
502 KiB Mem:   3050084 total,  1758028 used,  1292056 free,   178536 buffers
503 KiB Swap:   999420 total,        0 used,   999420 free.  1034528 cached Mem
504 
505    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                        
506      1 root      20   0   18172   3356   2872 S   0.0  0.1   0:00.19 bash                                                                                                           
507     23 root      20   0   19748   2356   2052 R   0.0  0.1   0:00.01 top                                                                                                            

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!