创建FTP服务器和无密码登陆

本文详细介绍了如何在Linux系统中管理防火墙和SELinux,包括使用VMware和CRT工具,通过命令行操作实现防火墙的开关、开机启动设置,以及SELinux的临时和永久关闭方法。

工具:VMware,CRT;


关闭防火墙
关闭防火墙并设置开机开不启动
查看当前状态
[root@localhost ~]# systemctl status firewalld.service #查看firewalld状态
[root@localhost ~]# systemctl stop firewalld #关闭
[root@localhost ~]# systemctl start firewalld #开启
[root@localhost ~]# systemctl disable firewalld #开机自动关闭 //RHLE7
[root@localhost ~]# chkconfig --list|grep network #查看开机是否启动 //RHLE6
[root@localhost ~]# systemctl enable firewalld #开机自动启动


临时和永久关闭Selinux
临时关闭
[root@localhost ~]# getenforce
Enforcing
[root@localhost~]# setenforce 0
setenforce: SELinux is disabled
永久关闭
[root@localhost ~]# vim /etc/selinux/config
把:SELINUX=enforcing 改成:SELINUX=disabled
[root@localhost ~]# reboot
创建FTP服务器和无密码登陆
挂载光盘镜像
创建FTP服务器和无密码登陆
配置本地yum源,并清空原yum缓存,然后生成新的缓存列表安装完成
yum的一切配置信息都储存在一个叫yum.repos.d的配置文件中,通常位于/etc/yum.repos.d目录下。
创建FTP服务器和无密码登陆
创建FTP服务器和无密码登陆
安装两个FTP服务
具体命令:yum repolist; yum install ftp
创建FTP服务器和无密码登陆
创建一个用户登录FTP服务器配置无密码登录并可以创建重命名及删除命令
创建FTP服务器和无密码登陆
创建FTP服务器和无密码登陆
创建FTP服务器和无密码登陆

转载于:https://blog.51cto.com/13956204/2171337

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值