实战案例:操作系统

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实战案例:操作系统相关的知识,希望对你有一定的参考价值。

一、busybox
BusyBox 是一个集成了一百多个最常用Linux命令和工具的软件。BusyBox 包含了一些简单的工具,
例如ls、cat和echo等等,还包含了一些更大、更复杂的工具,例grep、find、mount以及telnet。
有些人将 BusyBox 称为 Linux 工具里的瑞士军刀。简单的说BusyBox就好像是个大工具箱,它集
成压缩了 Linux 的许多工具和命令,也包含了 android 系统的自带的shell。

1、在dockerhub中搜索busybox相关的镜像
[email protected]:~# docker search busybox
NAME                        DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                     Busybox base image.                             1075      [OK]       
progrium/busybox                                                            67                   [OK]
hypriot/rpi-busybox-httpd   Raspberry Pi compatible Docker Image with ...   36                   
hypriot/armhf-busybox       Busybox base image for ARM.                     7                    
armhf/busybox               Busybox base image.                             3                    
armel/busybox               Busybox base image.                             2                    
onsi/grace-busybox                                                          2                    
s390x/busybox               Busybox base image.                             2                    
p7ppc64/busybox             Busybox base image for ppc64.                   2                    
prom/busybox                Prometheus Busybox Docker base images           2                    [OK]
aarch64/busybox             Busybox base image.                             2                    
arm32v7/busybox             Busybox base image.                             2                    
i386/busybox                Busybox base image.                             1                    
arm32v6/busybox             Busybox base image.                             1                    
ppc64le/busybox             Busybox base image.                             1                    
spotify/busybox             Spotify fork of https://hub.docker.com/_/b...   1                    
flynn/busybox               Busybox from Ubuntu 13.10 with libc             1                    
estesp/busybox              Test repo of a ‘manifest list‘ to encapsul...   0                    
podshumok/busybox                                                           0                    
trollin/busybox                                                             0                    
nranjan/busybox                                                             0                    
arm64v8/busybox             Busybox base image.                             0                    
ddn0/busybox                fork of official busybox                        0                    [OK]
arm32v5/busybox             Busybox base image.                             0                    
himanshu0503/busybox                                                        0                    
[email protected]:~#
提示:带有OFFICIAL标记的说明是官方镜像

2、查看镜像
[email protected]:~# docker images
busybox                           latest              e3826c3cb1d4        4 weeks ago          1.129 MB


3、运行busybox
[email protected]:~# docker run -it busybox
运行后随便执行几个命令试试
/ # pwd
/
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 02:42:C0:A8:C8:02  
          inet addr:192.168.200.2  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::42:c0ff:fea8:c802/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:578 (578.0 B)  TX bytes:578 (578.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/ #

busybox虽然小巧,但提供了常见的linux命令


二、CoreOS
这是一个基于docker的Linux发行版

下载地址:https://stable.release.core-os.net/amd64-usr/current/coreos_production_vmware_ova.ova

用vmware workstation运行这个虚拟机

本文出自 “Fresh Air Team” 博客,请务必保留此出处http://freshair.blog.51cto.com/8272891/1958352

以上是关于实战案例:操作系统的主要内容,如果未能解决你的问题,请参考以下文章

Python操作MySQL实战案例讲解

基于大数据技术推荐系统算法案例实战教程

ASM字节码操作 ASM 案例实战

ASM字节码操作 MethodVisitor 案例实战 生成对象

python3多进程实战(python3经典编程案例)

python3多进程实战(python3经典编程案例)