centos 6.7 修改

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

本篇發表於 未分類 並標籤為 。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>