linux工具busybox

下载busybox安装包1.31.0当前最新稳定版本,并解压:

wget    https://busybox.net/downloads/busybox-1.31.0.tar.bz2
 
tar -xjvf busybox-1.31.0.tar.bz2

编译环境配置

编译和安装busybox:

cd busybox-1.31.0/ 
make defconfig && make install

busybox make编译时的参数说明:

l defconfig 启用默认的(通用)配置。

l allnoconfig 禁用所有的应用程序(空配置)。

l allyesconfig 启用所有的应用程序(完整配置)。

l allbareconfig 启用所有的应用程序,但是不包括子特性。

l 配置busybox环境变量:

vi /etc/profile
将 export PATH=/root/busybox-1.31.0/_install/bin:$PATH 添加进去。

使busybox环境变量生效:

测试已完成编译的软件

测试已经安装busybox:

[root@server02 busybox-1.31.0]# busybox ls
AUTHORS                 README                  busybox_unstripped      examples                make_single_applets.sh  shell
Config.in               TODO                    busybox_unstripped.map  filter_log              miscutils               size_single_applets.sh
INSTALL                 TODO_unicode            busybox_unstripped.out  findutils               modutils                sysklogd
LICENSE                 _install                configs                 include                 networking              testsuite
Makefile                applets                 console-tools           init                    printutils              util-linux
Makefile.custom         applets_sh              coreutils               klibc-utils             procps
Makefile.flags          arch                    debianutils             libbb                   qemu_multiarch_testing
Makefile.help           archival                docs                    libpwdgrp               runit
NOFORK_NOEXEC.lst       busybox                 e2fsprogs               loginutils              scripts
NOFORK_NOEXEC.sh        busybox.links           editors                 mailutils               selinux

 

posted @ 2021-03-01 09:37  星火撩原  阅读(373)  评论(0)    收藏  举报