免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7657 | 回复: 3
打印 上一主题 下一主题

solaris 修改ulimit的方式是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-01-18 14:05 |只看该作者 |倒序浏览
1.想问一下.为什么直接执行就报错?
ulimit -c 2048
[oracle@boss ~]$ ulimit -c 2048
-bash: ulimit: core file size: cannot modify limit: Operation not permitted
2.想问一下solaris下改某一用户的limit 标准方法是什么?

论坛徽章:
0
2 [报告]
发表于 2011-01-20 14:32 |只看该作者
权限不对吧

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
3 [报告]
发表于 2011-01-20 20:44 |只看该作者
只能root?

论坛徽章:
0
4 [报告]
发表于 2011-01-20 22:26 |只看该作者
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP