Top / Linux / Ubuntu Server / 構築メモ

いまさらながら、、初めてUbuntu系を触ったので。雑感。

Ubuntu Server 16.04.2 LTS 構築メモ

Download Ubuntu Server | Download | Ubuntu

Ubuntuはrootがつかえない。

基本 sudo せいというコトらしい。。

Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Server World

まああとでイイや。

chkconfigがない。

かわりに 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がある。

Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow Escape

初回のUpdate

# sudo apt update  //リストの更新
# sudo apt upgrade

以下はapt-getを使った場合だけど、上のaptが正式みたいすね。

# sudo apt-get update  //リストの更新
# sudo apt-get upgrade // 更新
# sudo apt-get dist-upgrade // kernelとか含め更新

Java8のインストール

How To Install Oracle JAVA 8 on Ubuntu & LinuxMint with Apt-Get

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!。


この記事は

選択肢 投票
おもしろかった 0  
そうでもない 0  

Top / Linux / Ubuntu Server / 構築メモ

現在のアクセス:1695


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS