〇OrientDBの管理者画面
ブラウザからhttp://192.168.55.105:2480にアクセスします。デフォルトユーザはadmin、パスワードはadminです。
○構築方法
以下のVagrantfileを使用して、OrientDBをインストールした仮想マシン(Debian Stretch/9.4)を構築できます。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.4"
config.vm.hostname = "db94orientdb"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db94orientdb"
vbox.cpus = 2
vbox.memory = 4096
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.105", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.105", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
apt-get -y install task-japanese
sed -i -e 's/# ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
update-locale LANG=ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# install java
apt-get -y install openjdk-8-jdk
# download and install orientdb community edition
apt-get -y install unzip
wget https://bit.ly/orientdb-ce-2-2-34 -O orientdb-community-2.2.34.zip
unzip orientdb-community-2.2.34.zip
mv orientdb-community-2.2.34 /opt/orientdb
cat << EOF > /etc/systemd/system/orientdb.service
[Unit]
Description=OrientDB
[Service]
Type=simple
ExecStart=/opt/orientdb/bin/server.sh
ExecStop=/opt/orientdb/bin/shutdown.sh
WorkingDirectory=/opt/orientdb
KillMode=process
[Install]
WantedBy=multi-user.target
EOF
systemctl enable orientdb.service
systemctl start orientdb.service
echo 'access http://192.168.55.105:2480'
echo 'user: admin password: admin'
SHELL
end
0 件のコメント:
コメントを投稿