liunx服務使用(xinetd服務代理服務的服務、 telnet服務、)

xinetd服務

tftp服務

tftp-0.49-2.i386.rpm 客戶端

tftp-server-0.49-2.i386.rpm 服務端

配置文件目錄/etc/xinetd.d/tftp


service tftp

{

socket_type = dgram -----------------------套接字類型(udp) stream(tcp)

protocol = udp

wait = no

user = root

server = /usr/sbin/in.tftpd -------------啓動程序

server_args = -s -c /tftpboot ------------------向進程傳遞參數 -c允許創建

disable = no - -----------------------是否開啓服務 yes是關閉

per_source = 11 -----------------------每個ip的連接數

cps = 100 2 -------------------------當連接達到100時 停2秒

flags = IPv4

}


chmod 777 /tftpboot

service xinetd restart


查看端口udp端口

netstat -anplu | grep :69


上傳 上面添加-c

tftp 192.168.1.113

put a



下載 (在那個目錄就會從tftpboot裏下載到那裏)

tftp 192.168.1.113

get a


------------------------------------------------------------------------------------------


telnet服務


telnet-0.17-39.el5.i386.rpm 客戶端

telnet-server-0.17-39.el5.i386.rpm 服務端

端口:23


配置文件 /etc/xinetd.d/telnet


isable = no 打開服務


查看端口是否打開

netstat -anplt | grep :23




--------------------------------

用xinetd 服務代理 ftp


service vsftp stop 先把vsftp 停掉


cd /etc/xinetd.d/

cp tftp ftp

vim ftp 編輯文件


service ftp 這個服務對應的是 vim /etc/services 的服務所以必須寫 ftp


{

socket_type = stream

wait = no

user = root

server = /usr/sbin/vsftpd -這個對應的是usr/sbin/vsftpd 的程序

disable = no

}


netstat -anplt | grep :21 查看 vsftp 端口



-----------------------------

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章