Last active
July 16, 2020 13:35
-
-
Save ponsuke0531/03656264cef24c098488d965ed4ea44f to your computer and use it in GitHub Desktop.
Windows10にzipでPayaraをインストールする方法 ref: https://qiita.com/ponsuke0531/items/61a540f1123a6aa8e816
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 場所確認用にバージョンを確認する | |
$ /c/apps/payara5/bin/asadmin version | |
Version string could not be obtained from Server [localhost:4848]. | |
(Turn debugging on e.g. by setting AS_DEBUG=true in your environment, to see the details.) | |
Using locally retrieved version string from version class. | |
Version = Payara Server 5.194 #badassfish (build 327) | |
Command version executed successfully. | |
# .bash_profileにPATHを設定する | |
$ vi ~/.bash_profile | |
$ cat ~/.bash_profile | |
...省略... | |
export PAYARA_HOME="/c/apps/payara5" | |
export PATH=$PATH:$SVN_PATH:$MYSQL_HOME/bin:$PAYARA_HOME/bin | |
...省略... | |
# 設定を反映する | |
$ source ~/.bash_profile | |
# PATHが設定されたことを確認するために再度バージョンを確認する | |
$ asadmin version | |
Version string could not be obtained from Server [localhost:4848]. | |
(Turn debugging on e.g. by setting AS_DEBUG=true in your environment, to see the details.) | |
Using locally retrieved version string from version class. | |
Version = Payara Server 5.194 #badassfish (build 327) | |
Command version executed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ asadmin start-domain domain1 | |
Waiting for domain1 to start ................... | |
Successfully started the domain : domain1 | |
domain Location: C:\apps\payara5\glassfish\domains\domain1 | |
Log File: C:\apps\payara5\glassfish\domains\domain1\logs\server.log | |
Admin Port: 4848 | |
Command start-domain executed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Payaraを再起動する | |
$ asadmin restart-domain domain1 | |
Successfully restarted the domain | |
Command restart-domain executed successfully. | |
# 2. 接続確認を行う | |
$ asadmin ping-connection-pool {domain.xmlのjdbc-connection-poolに設定したname属性値} | |
Command ping-connection-pool executed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JVMオプション削除 : 最大ヒープサイズ | |
$ asadmin delete-jvm-options -Xmx512m | |
Deleted 1 option(s) | |
Command delete-jvm-options executed successfully. | |
# JVMオプション追加 : 最大ヒープサイズ | |
$ asadmin create-jvm-options -Xmx1024m | |
Created 1 option(s) | |
Command create-jvm-options executed successfully. | |
# JVMオプション追加 : クラスデータの領域設定 | |
$ asadmin create-jvm-options "-XX\:MaxMetaspaceSize=256m" | |
Created 1 option(s) | |
Command create-jvm-options executed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ asadmin add-library /c/Users/ponsuke/Downloads/mysql-connector-java-8.0.19/mysql-connector-java-8.0.19/mysql-connector-java-8.0.19.jar | |
Command add-library executed successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment