0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AlmaLinux8でHinemos Managerを構築する

Posted at

こんにちは。
株式会社クラスアクト インフラストラクチャ事業部の大塚です。

最近、仕事でHinemosを使う事が増えてきておりしっかり理解して触りたいなと思ったので、とりあえず1から環境を構築することにしました。

手順

Vagrantを使ってVirtualBoxにManager用のVMの用意したいと思います。
今回用意したVagrantfileは以下
Vagrantを使わずとも、UIをポチポチして普通にVMを作っても何ら問題はありません。

shota@shota-20f5a2v5jp:~/ドキュメント/vagrant_hinemos$ cat Vagrantfile
Vagrant.configure("2") do |config|
  # 使用するボックス(Alma Linux 8)
  config.vm.box = "almalinux/8"
  config.vm.box_version = "8.10.20250220"  # 必要に応じてバージョンを指定

  # 仮想マシンのリソース設定
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "4096"  # メモリ設定
    vb.cpus = 2         # CPU設定
  end

  # ネットワーク設定(ブリッジ接続)とIPアドレスの固定化
  config.vm.network "public_network", bridge: "wlp4s0", ip: "192.168.0.130"

  # 仮想マシンのホスト名を設定
  config.vm.hostname = "hinemos"

  # 仮想マシン名の設定
  config.vm.define "hinemos" do |alma|
    # 仮想マシンを起動した際に実行するシェルスクリプト
    alma.vm.provision "shell", inline: <<-SHELL
      # システムの更新
      sudo dnf update -y

      # DNS設定
      echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
      echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
    SHELL
  end
end

これを使ってVMを立ち上げます。

shota@shota-20f5a2v5jp:~/ドキュメント/vagrant_hinemos$ vagrant up
shota@shota-20f5a2v5jp:~/ドキュメント/vagrant_hinemos$ vagrant global-status
id       name     provider   state    directory
--------------------------------------------------------------------------
省略
8bdf28a  hinemos virtualbox running /home/shota/ドキュメント/vagrant_hinemos

vagrant sshでVMにアクセスします。

shota@shota-20f5a2v5jp:~/ドキュメント/vagrant_hinemos$ vagrant ssh 8bdf28a
[vagrant@hinemos ~]$ sudo su -

SELinuxやfirewalldを無効化します。

[vagrant@hinemos ~]$ sudo su -
[root@hinemos ~]# vi /etc/selinux/config
[root@hinemos ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@hinemos ~]# systemctl disable firewalld
[root@hinemos ~]# reboot

Hinemos ManagerやWebクライアント、その他必要になるものをインストール/ダウンロードしていきます。

[root@hinemos ~]# dnf install wget libXi libXrender libXtst alsa-lib fontconfig freetype vim-common java-1.8.0-openjdk
[root@hinemos ~]# wget https://github.com/hinemos/hinemos/releases/download/v7.0.0/hinemos-7.0-manager-7.0.0-1.el8.x86_64.rpm
[root@hinemos ~]# wget https://github.com/hinemos/hinemos/releases/download/v7.0.0/hinemos-7.0-web-7.0.0-1.el8.x86_64.rpm
[root@hinemos ~]# ls
hinemos-7.0-manager-7.0.0-1.el8.x86_64.rpm  hinemos-7.0-web-7.0.0-1.el8.x86_64.rpm 

ManagerとWebをインストール

[root@hinemos ~]# rpm -ivh hinemos-7.0-manager-7.0.0-1.el8.x86_64.rpm
[root@hinemos ~]# systemctl start hinemos_manager
[root@hinemos ~]# systemctl enable hinemos_manager
[root@hinemos ~]# systemctl status hinemos_manager
● hinemos_manager.service - Hinemos Manager
   Loaded: loaded (/usr/lib/systemd/system/hinemos_manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2025-04-29 11:36:24 UTC; 38s ago
 Main PID: 2680 (java)
    Tasks: 18 (limit: 24760)
   Memory: 374.4M
   CGroup: /system.slice/hinemos_manager.service
           mq2680 /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -Djdk.xml.entityExpansionLimit=0 -javaagent:/opt/hinemos/l>

Apr 29 11:36:23 hinemos systemd[1]: Starting Hinemos Manager...
Apr 29 11:36:23 hinemos jvm_start.sh[2610]: waiting for Java Virtual Machine startup...
Apr 29 11:36:24 hinemos jvm_start.sh[2610]: Java Virtual Machine started (with -W option)
Apr 29 11:36:24 hinemos systemd[1]: Started Hinemos Manager.

[root@hinemos ~]# rpm -ivh hinemos-7.0-web-7.0.0-1.el8.x86_64.rpm
[root@hinemos ~]# systemctl start hinemos_web
[root@hinemos ~]# systemctl enable hinemos_web
[root@hinemos ~]# systemctl status hinemos_web
● hinemos_web.service - Hinemos Web
   Loaded: loaded (/usr/lib/systemd/system/hinemos_web.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2025-04-29 11:37:58 UTC; 11s ago
 Main PID: 2915 (java)
    Tasks: 35 (limit: 24760)
   Memory: 273.0M
   CGroup: /system.slice/hinemos_web.service
           mq2915 /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -Djava.util.logging.config.file=/opt/hinemos_web/tomcat/co>

Apr 29 11:37:58 hinemos systemd[1]: Starting Hinemos Web...
Apr 29 11:37:58 hinemos tomcat_start.sh[2896]: clearing temporary tomcat data
Apr 29 11:37:58 hinemos tomcat_start.sh[2896]: successful in clearing temporary tomcat data.
Apr 29 11:37:58 hinemos tomcat_start.sh[2858]: waiting for WebClient startup...
Apr 29 11:37:58 hinemos tomcat_start.sh[2909]: Tomcat started.
Apr 29 11:37:58 hinemos tomcat_start.sh[2858]: WebClient started. (with -W option)
Apr 29 11:37:58 hinemos systemd[1]: Started Hinemos Web.

http://"サーバのIPアドレス"でWebブラウジング
ユーザとパスワードはhinemosとhinemosでいける。
image.png

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?