solaris 修改ulimit的方式是什么?
1.想问一下.为什么直接执行就报错?
ulimit -c 2048
[oracle@boss ~]$ ulimit -c 2048
-bash: ulimit: core file size: cannot modify limit: Operation not permitted
2.想问一下solaris下改某一用户的limit 标准方法是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Step1: check current status(stack,nofiles) using “ulimit –a” command
login as: admin
Using keyboard-interactive authentication.
Password:
Last login: Sat Jul 19 23:28:17 2008 from 192.168.1.9
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 1024
memory(kbytes) unlimited
Step 2:modify file /etc/system(login as root) .Then reboot pc, that’s absolutely necessary.
$ su -
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
##### We append /etc/system ######
#vi /etc/system
*set Hard limit on file descriptors
set rlim_fd_max=8192
*set soft limit on file descriptors
set rlim_fd_cur=4096
"/etc/system" 81 lines, 1996 characters
#reboot
Step 3: check current status again login as both root and common user
############wait for starting OS ###############
login as: admin
Using keyboard-interactive authentication.
Password:
Last login: Sat Jul 19 23:28:17 2008 from 192.168.1.9
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ su -
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 4096
memory(kbytes) unlimited
# su - admin
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 4096
memory(kbytes) unlimited
只能root?
权限不对吧