挂载yum源、安装yum
[root@localhost ~]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# vi local.repo
添加本地yum地址
[local]
name=local
baseurl=file:///mnt/cdrom
gpgcheck=0
enabled=1
[root@localhost ~]# mkdir -p /mnt/cdrom
[root@localhost ~]# mount /dev/sr0 /mnt/cdrom/
[root@localhost ~]# cd /usr/share/yum-cli/
[root@localhost yum-cli]# ./yummain.py install yum
已加载插件:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
local | 2.8 kB 00:00:00
rhel7 | 2.8 kB 00:00:00
(1/2): local/group_gz | 95 kB 00:00:00
(2/2): local/primary | 2.1 MB 00:00:00
local
挂载共享储存
1、挂载 mount -t nfs -o vers=3 10.151.0.3:/mnt/VUPP_100G/share/VUPP_100G /fts(挂载目录自己定)
2、写入fstab
vi /etc/fstab
添加:
10.151.0.3:/mnt/VUPP_100G/share/VUPP_100G /fts nfs vers=3 0 0
安装命令
安装sftp命令
[root@localhost ~]# yum search sftp
[root@localhost ~]# yum install -y vsftpd.x86_64
安装ftp命令
[root@localhost ~]# yum search ftp
[root@localhost ~]# yum -y install ftp
安装netstat命令
[root@localhost ~]# yum search netstat
[root@localhost ~]# yum -y install net-tools.x86_64
安装lsof命令
[root@localhost ~]# yum search lsof
[root@localhost ~]# yum -y install lsof*
安装telnet命令
[root@localhost ~]# yum search telnet
[root@localhost ~]# yum -y install telnet*
安装uzip命令
[root@localhost ~]# yum search unzip
[root@localhost ~]# yum -y install unzip
安装szrz命令
[root@localhost ~]# yum search lrzsz
[root@localhost ~]# yum -y install lrzsz
sftp加入开机启动
[root@localhost ~]# service vsftpd start
Redirecting to /bin/systemctl start vsftpd.service
[root@localhost ~]# systemctl -l | grep vsftpd
vsftpd.service
[root@localhost ~]# systemctl enable vsftpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service. loaded active running Vsftpd ftp daemon
[root@localhost ~]# systemctl -l | grep vsftpd