vi /etc/sysconfig/selinux
SELINUX=disabled
————————————
CentOS 6關閉IPv6功能
/etc/sysctl.conf
#Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
service ip6tables stop
chkconfig ip6tables off
———————————–
updatedb && yum install epel-* -y && yum update -y && init 6
———————————–
vi /etc/ssh/sshd_confg
拿掉#
#Port 22 ——>Port 7822
拿掉#
#PermitRootLogin yes
———————————–
vi /etc/default/useradd
SHELL=/bin/bash—————>SHELL=/bin/nologin
———————————–
vi /etc/samba/smb.conf
啟動 smbd 時加上 -D 參數
# vi /etc/sysconfig/samba
SMBDOPTIONS="-D"
設置 rlimit_max 數值
# vi /etc/security/limits.conf
# 加入以下內容
* – nofile 16384
立即生效
# ulimit -n 16384
vi /etc/samba/smb.conf
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
getwd cache = yes
# 徹底停用印表機分享
load printers = no
;cups options = raw
printcap name = /dev/null
disable spoolss = yes
printing = bsd