Close SELINUX (Needn’t reboot Linux)
Edit /etc/sysconfig/selinux
………….
#SELINUX=enforcing
SELINUX=disabled
…..
:wq
Then run commont "setenforce 0"
Edit /etc/sysconfig/selinux
………….
#SELINUX=enforcing
SELINUX=disabled
…..
:wq
Then run commont "setenforce 0"
ftp>prompt
ftp>mget *.*
or
lftp ftp://xxxx.xx
mirror
Create a .htaccess file at the root directory of website
Add "IndexOptions Charset=GB2312" and save it.
Finished.
pkill -kill -t (user’s pts)
touch .hushlogin
# echo >.bash_history
# vim /etc/profile
……
HOSTNAME=`/bin/hostname`
HISTSIZE=0
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
……
:wq
# exit
If you want to keep the history when before you logout. You can keep the HISTSIZE=1000 and add "history -c" in the file .bash_logout.
For example:
[user@linuxos ~]# ping 172.30.30.0 -b
WARNING: pinging broadcast address
PING 172.30.30.0 (172.30.30.0) 56(84) bytes of data.
64 bytes from 172.30.30.123: icmp_seq=1 ttl=255 time=0.805 ms
64 bytes from 172.30.30.2: icmp_seq=1 ttl=255 time=1.30 ms (DUP!)
64 bytes from 172.30.30.15: icmp_seq=1 ttl=64 time=33.0 ms (DUP!)
64 bytes from 172.30.30.11: icmp_seq=1 ttl=64 time=35.0 ms (DUP!)
64 bytes from 172.30.30.14: icmp_seq=1 ttl=64 time=37.2 ms (DUP!)
64 bytes [...]
Edit proftpd.conf
Add TimesGMT off
Then save & quit and create a softlink
ln -s /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/CST
restart proftpd
************************************************
Edit or Replace /var/www/error/noindex.html
*****************************************