liunx基础安装命令

liunx基础安装命令


关闭防火墙

[root@localhost ~]# systemctl disable firewalld

安装ll

按照顺序输入

# 编写
[root@localhost ~]# vi ~/.bashrc

图片

# 刷新
[root@localhost ~]# source ~/.bashrc

安装wget

[root@localhost ~]# yum install -y wget

安装ifconfig

[root@localhost ~]# yum install -y net-tools

安装xinetd

[root@localhost ~]# yum install -y gcc automake autoconf libtool make

安装rzrs

[root@localhost ~]# yum install -y xinetd

安装unzip

[root@localhost ~]# yum install -y unzip

安装service

[root@localhost ~]# yum install -y initscripts

安装sudo

[root@localhost ~]# yum install -y sudo

安装libaio

[root@localhost ~]# yum install -y libaio-devel.x86_64

安装GCC-C++

yum -y install gcc
yum -y install gcc-c++

安装GCC

[root@localhost ~]# yum install -y centos-release-scl
[root@localhost ~]# yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
[root@localhost ~]# scl enable devtoolset-9 bash
#如果要长期生效的话,执行如下:
[root@localhost ~]# echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile

安装vim

[root@localhost ~]# yum install -y vim*

安装rz

[root@localhost ~]# yum install lrzsz -y