亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2943 | 回復(fù): 5
打印 上一主題 下一主題

[C] 在root下用ulimit這樣設(shè)置了,為什么切換用戶后還是原樣?? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2013-04-23 17:32 |只看該作者 |倒序瀏覽
在root下用ulimit這樣設(shè)置了,為什么切換用戶后還是原樣??

[oracle@localhost]$ su
Password:
[root@localhost]# ulimit -s
10240
[root@localhost]# ulimit -s 1024000
[root@localhost]# ulimit -s
1024000
[root@localhost]# exit
exit
[oracle@localhost]$ ulimit -s
10240
[oracle@localhost]$

論壇徽章:
4
水瓶座
日期:2013-09-06 12:27:30摩羯座
日期:2013-09-28 14:07:46處女座
日期:2013-10-24 14:25:01酉雞
日期:2014-04-07 11:54:15
2 [報告]
發(fā)表于 2013-04-23 18:20 |只看該作者
只影響當前的shell環(huán)境。

論壇徽章:
0
3 [報告]
發(fā)表于 2013-04-23 18:24 |只看該作者
linux_c_py_php 發(fā)表于 2013-04-23 18:20
只影響當前的shell環(huán)境。

想對所有session有效,怎么做?

論壇徽章:
4
水瓶座
日期:2013-09-06 12:27:30摩羯座
日期:2013-09-28 14:07:46處女座
日期:2013-10-24 14:25:01酉雞
日期:2014-04-07 11:54:15
4 [報告]
發(fā)表于 2013-04-23 18:26 |只看該作者
/etc/security/limits.conf  

論壇徽章:
0
5 [報告]
發(fā)表于 2013-04-23 18:29 |只看該作者
linux_c_py_php 發(fā)表于 2013-04-23 18:26
/etc/security/limits.conf


[root@localhost ~]# cat /etc/security/limits.conf  
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4

# End of file
[root@localhost ~]#

怎么都是#注釋?
如何改。

論壇徽章:
0
6 [報告]
發(fā)表于 2013-04-24 12:57 |只看該作者
注釋好像寫得比較清楚,里面的示例
*               soft    core            0
將所有用戶的core文件的大小設(shè)置為0
@student        hard    nproc           20
student用戶組最大進程數(shù)硬性限制為20
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP