1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

BaseDBでbashをタイムアウトしないようにするためのメモ

Last updated at Posted at 2025-12-07

はじめに

BaseDBにおけるOSの環境変更は自己責任で!のもとで、BaseDBを作成した後にbashのタイムアウト時間を延ばすときのやつ。細かくは、SSHタイムアウトとは別。

以下、2025/12/7時点で、BaseDBのデフォルト値がTMOUT=600であることを前提としています。
状況に応じて、値やコマンドの細かいところはお好みで。

コマンド

$ sudo su -

# cat /etc/profile

### 600秒(10分)を86400秒(1440分=24時間)に置換  ※viでいちいち開くのめんどいので
# sed -i 's/TMOUT=600/TMOUT=86400/' /etc/profile

# cat /etc/profile

### 再起動せずに即時反映
# source /etc/profile

ひとこと

こういうメモはさくっと出せるようにしておきたい。

(ご参考)SSHのタイムアウトについて

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?