Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@kilo

ulimit で nofile に大きい値を設定したい

ulimit で詰まった。のでメモ。

環境

  • Arch Linux x64

詰まったところ

shell
user $ ulimit -n
1024
user $ ulimit -Hn
4096
user $ ulimit -Sn 12000
user $ ulimit -n
4096
user $ ulimit -Hn 12000
ulimit: Permission denied when changing resource of type 'Maximum number of open file descriptors'
user $ 

nofile に 4096 までしか設定できない。

対応

shell
user $ sudo su
[sudo] password for user:
root # ulimit -n
1024
root # ulimit -Hn
4096
root # ulimit -Hn 12000
root # ulimit -Sn 12000
root # ulimit -n
12000
root # su - user
user $ ulimit -n
12000

一応できたが、良い方法ではないかもしれない。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?