怎么查看开机的启动项呢?启动了哪些进程和服务?
1. sudo ls -al /sbin | grep init
1-1. 如果是
lrwxrwxrwx 1 root root 20 五 6 01:55 init
表示由 upstart 負責開機初始化
1-1-1. upstart 開機初始化 參見
https://wiki.ubuntu.com/Upstart
SystemdForUpstartUsers
1-2. 如果是
lrwxrwxrwx 1 root root 20 五 6 01:55 init -> /lib/systemd/systemd
表示由 systemd 負責開機初始化
1-2-1. systemd 開機初始化 參見
https://wiki.ubuntu.com/SystemdForUpstartUsers
SystemdForUpstartUsers
2. 初始化完成 登入桌面 終端機 指令
pstree
會依照啟動順序顯示出已經啟動的程序(呈樹狀)
排在前面的先啟動
排在後面的跟著啟動
2-1. 如果第一個是 init 表示是 upstart 初始化
2-2. 如果第一個是 systemd 表示是 systemd 初始化
|