〇OrientDBの管理者画面
ブラウザからhttp://192.168.1.105:2480にアクセスします。デフォルトユーザはadmin、パスワードはadminです。
○構築方法
以下のVagrantfileを使用して、OrientDB3.0.0をインストールした仮想マシン(Ubuntu18.04)を構築できます。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.hostname = "ub1804orientdb300"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1804orientdb300"
vbox.cpus = 2
vbox.memory = 2048
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
# update packages
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
locale-gen ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
# install java
apt-get -y install openjdk-8-jdk
# download and install orientdb community edition
wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.0/orientdb-3.0.0.tar.gz
tar xvfz orientdb-3.0.0.tar.gz
mv orientdb-3.0.0 /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.1.105:2480'
echo 'user: admin password: admin'
SHELL
end
0 件のコメント:
コメントを投稿