2010年3月31日 星期三

Linux Command

[System Services]


/usr/sbin/setup


[check sshd status]


netstat -a | more


tcp 0 0:ssh *:* LISTEN


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


[start httpd]


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


then type:


./httpd start


[start mysql]


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


then type:


./mysqld start


[start telnet]


Edit the file /etc/xinetd.d/telnetd


changing the two lines to:


# default: on


disabled = no


then try doing this


/etc/rc.d/init.d/xinetd restart


[ftp]


Edit the file /etc/xinetd.d/wu-ftpd


changing the two lines to:


# default: on


disabled = no


then run the command


/etc/rc.d/init.d/xinetd restart


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


# chkconfig telnet on


# service xinetd reload


Reloading configuration: [ OK ]


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


[Configure Telnet for root logins]


#Simply edit the file /etc/securetty and add the following to the end of the file:


pts/0


pts/1


pts/2


pts/3


pts/4


pts/5


pts/6


pts/7


pts/8


pts/9


This will allow up to 10 telnet sessions to the server as root.


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


??/etc/xinetd.d/telnet


把disable=yes修改?disable=no,


保存退出;


#service xinetd restart


沒有留言:

張貼留言