手机
当前位置:查字典教程网 >操作系统 >RedHat/Centos >linux平台开启ftp/telnet服务
linux平台开启ftp/telnet服务
摘要:在安装好Redhat以后,需要设置Ftp和Telnet服务文件,才能启动Ftp和Telnet服务,可以通过远程控制进行开启。1.1、用roo...

在安装好Redhat以后,需要设置Ftp和Telnet服务文件,才能启动Ftp和Telnet服务,可以通过远程控制进行开启。

1.1、用root用户登录,进入终端命令模式;

1.2、开启ftp服务。

cd /etc/xinetd.d,编辑ftp服务的配置文件gssftp的设置:

linux平台开启ftp/telnet服务1

图1 开启ftp服务设置.

vi gssftp ,将 修改两项内容:

(1)server_args = -l –a 去掉-a 改为server_args = -l

(2)disable=yes改为disable=no

(3)保存退出。

1.3、开启telnet服务

cd /etc/xinetd.d ,察看telnet服务的配置文件krb5-telnet的设置:

linux平台开启ftp/telnet服务2

图2 开启telnet服务设置

vi krb5-telnet

(1)将disable=yes,改为disable=no,保存退出。

1.4、激活服务:

telnet /ftp 是挂在 xinetd 底下的,所以自然只要重新激活 xinetd 就能够将 xinetd 里头的设定重新读进来,所以刚刚设定的telnet /ftp自然也就可以被激活。

激活目录和命令:

cd /etc/rc.d/init.d/

service xinetd restart

有时会提示命令不存在,需要加上命令的路径

[root@localhost init.d]# service xinetd resart

bash: service: command not found

[root@localhost init.d]# /sbin/service xinetd restart

linux平台开启ftp/telnet服务3

图3 重新启动FTP、Telnet服务

1.5连上FTP

linux平台开启ftp/telnet服务4

图4 连接FTP

说明,如果主机设置了DNS时,不知道为什么FTP连接时有点慢,当连上去以后就正常,如果去掉DNS好像就没有这个问题。

【linux平台开启ftp/telnet服务】相关文章:

linux-2.6内核升级详细文档

linux一些小技巧

创建Linux之USB启动盘

Linux平台下文件的压缩与解压参数说明

linux的3种引导方法

centos 7 安装percona Server 服务器方法

制作Linux的usb启动盘

wdlinux_lnmp的服务器安装图文教程

linux 系统下DHCP服务器 配置方法

linux启动时挂载rootfs

精品推荐
分类导航