0
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?

Linuxメモ

Posted at

プロセス一覧を表示するコマンド

ps aux

親子関係でプロセス一覧を表示

pstree -p

使用しているポート番号を確認するコマンド

sudo ss -antup

systemdとは

Linuxのプロセスは親子関係となっており、一番上の親のプロセスはイニットプロセスという。
イニットプロセスとして使えるプログラムは多数あるが、最近はsystemdが主流。

ハンズオン研修などではnodeコマンドを使いシステムを実行しているが、実際の現場ではsystemdから、webアプリを起動させる必要がある。

systemdから起動することのメリット

  • 何かしらの原因でサーバーが停止した場合でも、自動で再起動してくれる。
  • 実行したアプリのログを取得してくれる

systemdは設定ファイルに記述した内容で動いてくれる。
systemdの設定ファイルは/etc/systemd/system/に配置される

sshdとは

ssh接続を待ち受けるプログラム。systemdから起動している。

0
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
0
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?