linux没有命令问题笔记
ubuntu 用apt
centos 用 yum
linux没有ifconfig命令的安装方法
yum -y install net-tools
参考: https://zhuanlan.zhihu.com/p/129326253
一条命令就可以安装jdk:
yum install java-1.8.0-openjdk* -y
参考: https://www.cnblogs.com/wy-ls/p/9173746.html
安装python3
https://www.cnblogs.com/cosiray/p/9946401.html
没有vim命令
具体执行如下两个命令:
apt-get update
apt-get install vim
帅爷说
centos等redhat用yum
debian是用apt 说明官方镜像是基于debian的
apt 命令: https://www.cnblogs.com/east7/p/15834866.html
自己在学习dockerfile 时 也发现 基于不同系统会自带不同命令
yum install vim -y
https://www.cnblogs.com/qianxiaoruofeng/p/5778733.html
卸载命令
yum remove vim
上面不行用 yum install vim-enhanced
安装zip工具
yum innstall -y unzip zip
乌班图的(ubuntu)用apt
没有docker
我用下面的没成功也, 然后看这篇 https://blog.csdn.net/admans/article/details/125021989
没有ping命令
apt install -y iputils-ping
curl: command not found解决方法
ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
centos 系统安装 Curl 方法: yum update -y && yum install curl -y
curl安装
apt install curl
没有service命令
yum install initscripts -y
sudo命令安装
yum install sudo
wget命令安装
yum -y install wget
后计:
apt 和 yum 更换后也可以安装的
没有sudo
apt-get install sudo