screen maxwin ウィンドウ数を制限する。

maxwinのデフォルトは40らしい。
開発環境のopenvzが8接続しか出来ないので、screenでたくさん開いて切れるとつなげなくなるので、止めておく。

screen

ctrl+a
:maxnum 5

で、5個以上windowを生成出来なくなる

==
/etc/security/limits.conf
maxloginsも設定しておく
@users – maxlogins 7
usersは 7までしかログイン出来なくしておく。
screen の maxnumをしてなくてもこの上限となる。

This entry was posted on 木曜日, 8月 22nd, 2013 at 12:40 PM and is filed under server, ssh. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。