- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2018-07-07T08:33:47+00:00","default:masatomix","masatomix")
#topicpath
----
#contents
**バージョン確認 [#k092b32d]
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
** chkconfigがない。 [#f4350efb]
かわりに sysv-rc-conf があるみたい。
# sudo apt install sysv-rc-conf
試してみる。
# sudo sysv-rc-conf --list | grep apache2
apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# sudo sysv-rc-conf apache2 --level 345 off
# sudo sysv-rc-conf --list | grep apache2
apache2 0:off 1:off 2:on 3:off 4:off 5:off 6:off
# sudo sysv-rc-conf apache2 --level 345 on
# sudo sysv-rc-conf --list | grep apache2
apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off
chkconfigとおんなじじゃないか。
sudo sysv-rc-conf でUIっぽくみることが出来る。。
というか、そもそもchkconfig ってLinux全体でディスコンになってるぽいし、Ubuntuもただしくはsystemctl 使うのが正しいようですね。
[[ubuntu server 16.04.2でsystemdから自動起動 - JP7FKFの備忘録>http://jp7fkf.hatenablog.jp/entry/2017/05/28/225946]]
** systemctlの件。 [#h28fd996]
$ sudo systemctl get-default
graphical.target
[[Linux女子部 systemd徹底入門>https://www.slideshare.net/enakai/linux-27872553]]
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}