Linux Network Services

Source: Internet
Author: User

To view open ports:

Netstat-tunlp

To view network configuration:

Chkconfig

To turn off the firewall:

Chkconfig iptables off

/etc/init.d/iptables stop

Open Telnet Service:

Yum Install Telnet-server #安装

Vi/etc/xinetd.d/telnet #修改telnet配置将disable =yes to No

/etc/init.d/xinetd Restart #重启xinetd服务

Chkconfig Telnet on #设置telnet服务自启动

Echo ' pts/0 ' >>/etc/securetty;echo ' pts/1 ' >>/etc/securetty; #设置允许远程登录root用户

Vi/etc/sysconfig/iptables #编辑该文件添加一行:-a input-m State--state new-m tcp-p TCP--dport 23-j ACCEPT

/etc/init.d/iptables Restart #重启防火墙

Telnet 127.0.0.1 [23°c] #测试远程登录

Open Daytime Services:

Vi/etc/xinetd/daytime-stream #修改daytime配置将disable =yes to No

/etc/init.d/xinetd Restart #重启xinetd服务

Telnet 127.0.0.1 #测试获取远程时间

  

Linux Network Services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.