字體:  

解決 Samba 遇到 rlimit_max increasing rlimit_max (1024)的問題

girl 發表於: 2013-2-21 16:19 來源: ADJ網路控股集團


設定好 /etc/samba/smb.conf 之下...下了 testparm 參數...卻出現一個訊息

CODE:

[root@www samba]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
這時可以這樣解決:

CODE:

# ulimit -n 16384
# vi /etc/security/limits.conf
在最下面加入:
* - nofile 16384
這樣再執行一次就不會再出現啦~~