- 追加された行はこの色です。
- 削除された行はこの色です。
[[Linux]]
#topicpath
----
いまさらながら、、初めてUbuntu系を触ったので。雑感。
Ubuntu Server 16.04.2 LTS 構築メモ
#contents
**Ubuntu Server 16.04.2 LTS 構築メモ [#ld21b0a5]
[[Download Ubuntu Server | Download | Ubuntu>https://www.ubuntu.com/download/server]]
***Ubuntuはrootがつかえない。 [#xc91c02d]
基本 sudo せいというコトらしい。。
[[Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Server World>https://www.server-world.info/query?os=Ubuntu_15.04&p=initial_conf&f=2]]
まああとでイイや。
*** chkconfigがない。 [#f4350efb]
かわりに sysv-rc-conf があるみたい。
# sudo apt-get 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 使うのが正しいようですね。
*** aptとapt-getがある。 [#z80c2d89]
[[Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow Escape>https://www.hiroom2.com/2016/05/12/ubuntu-16-04-debian-8%E3%81%AEapt%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9/]]
***初回のUpdate [#ffccf4d0]
# sudo apt update //リストの更新
# sudo apt upgrade
以下はapt-getを使った場合だけど、上のaptが正式みたいすね。
# sudo apt-get update //リストの更新
# sudo apt-get upgrade // 更新
# sudo apt-get dist-upgrade // kernelとか含め更新
***Java8のインストール [#e46b3e68]
[[How To Install Oracle JAVA 8 on Ubuntu & LinuxMint with Apt-Get>https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/#]]
apt-getの標準のリポジトリサーバにはないようで、リポジトリの追加から。
# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update
# sudo apt-get install oracle-java8-installer
あとはつぎへつぎへ。。
# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
# javac -version
javac 1.8.0_131
OK!。
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}