前些天自己在Linux下搭建了ftp服务,今天又加深了学习,总结如下:
1、ftp开机自动运行:开机自动运行有几种方法,其中可以用命令chkconfig vsftpd on,这样开机后就自动运行了。
相应的想关闭的话chkconfig vsftpd off
2、ssh服务开机自动运行:同上命令为:chkconfig sshd on;chkconfig sshd off,这样可以通过ssh客户端软件,登陆服务器。常用的软件 为SSHSecureShellClient-3.2.9.exe
3、服务开启的命令:service vsftpd start,service vsftpd stop
4、关闭防火墙:在连接服务的时候,防火墙需要关闭,不然连接不上。关闭方法:servic iptables stop;开启方法servic iptables start
5、查看ip地址的方法:在Linux中,不上ipconfig 而是ifconfig
6、开机防火墙开启与关闭:chkconfig iptables on;chkconfig iptables off