ChatLuckの更新

ChatLuck (Linux+PostgreSQL) のChatLuck V5.0R2.0への更新についての説明です。

ここではChatLuck V5.0R2.0への更新について説明します。

1.各プロセスの停止

1-1. 以下のコマンドを実行し、リアルタイムサーバーを停止します。

[root@xxxxxx ~]# systemctl stop chatluckws
chatluck-rserver を停止中:          [ OK ]
[root@xxxxxx ~]#

"chatluck-rserver を停止中: [ OK ]"のように表示されれば停止されています。

1-2. 以下のコマンドを実行し、スケジューラーを停止します。

[root@xxxxxx ~]# pkill -9 -f chatBatScheduler
[root@xxxxxx ~]#

 

2.パッケージの展開

ここでは、ダウンロードしたファイルをFTPにて、"guest"ユーザーのホームディレクトリに転送済みとし、/tmpディレクトリを作業用ディレクトリとして使用する前提で説明します。
引き続き、"root"ユーザーで作業を行います。

2-1. /tmpディレクトリに、前回インストール時のファイルが残っている場合は削除します。

[root@xxxxxx ~]# cd /tmp
[root@xxxxxx tmp]# rm -rf cgi-bin htdocs
[root@xxxxxx tmp]#

 

2-2. 次に、/tmpディレクトリにパッケージを展開します。

[root@xxxxxx tmp]# tar zxvf /home/guest/chatluckupdate_5.0.2.0_pg13_linux_x64.tar.gz
(中略)
[root@xxxxxx tmp]#

展開が完了すると、/tmpディレクトリ下に「cgi-bin」ディレクトリが作成されます。

2-3.展開された「cgi-bin」ディレクトリのオーナーをApacheのサービス実行ユーザーに変更します。

[root@xxxxxx tmp]# chown -R apache:apache cgi-bin
[root@xxxxxx tmp]#

 

3.パッケージの上書き

3-1.展開された「chatlk」「chatlksa」ディレクトリ内のファイルとディレクトリを、ChatLuck本体のインストール先に上書きコピーします。

[root@xxxxxx tmp]# /bin/cp -rp cgi-bin/chatlk /var/www/cgi-bin/.
[root@xxxxxx tmp]# /bin/cp -rp cgi-bin/chatlksa /var/www/cgi-bin/.
[root@xxxxxx tmp]#

 

3-2.不要ファイルの削除を行います。

[root@xxxxxx tmp]# rm -rf cgi-bin
[root@xxxxxx tmp]#

 

4.リアルタイムサーバーの起動

4-1. 以下のコマンドを実行し、リアルタイムサーバーを起動します。

[root@xxxxxx tmp]# systemctl start chatluckws
[root@xxxxxx tmp]# cat /var/www/cgi-bin/chatlk/rserver/log/rserver.log
[2021-12-01T09:00:00.000+09:00] Start the server with the address "[::]:3000"

"rserver.log"に"Start the server with the address "[::]:3000""のように表示されていれば、リアルタイムサーバーの起動は完了です。

 

以上でChatLuck (Linux+PostgreSQL版) のアップデートは完了です。

 

記載の製品名および商品名は、各社の商標、または登録商標です。