Glassfish AP Server 整理
- CentOS 5 安裝 GlassFish v3
- Glassfish 時區
- 發現程式寫入產生的時間有時差, 可以透過以下方式確認 Glassfish 的時間設定
localadmin@iSoft31:/opt/glassfishv3/glassfish/bin$ ./asadmin generate-jvm-report | grep time General Java Runtime Environment Information for the VM: 10069@iSoft31 java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_01-b08 org.glassfish.additionalOSGiBundlesToStart = org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall user.timezone = US/Central
- 正常的狀況只要 OS 的時區設定正確 Glassfish 啟動就會正確<codeh sh>
localadmin@iSoft31:/opt/glassfishv3/glassfish/bin$ cat /etc/timezone Asia/Taipei localadmin@iSoft31:/opt/glassfishv3/glassfish/bin$ sudo service glassfish restart localadmin@iSoft31:/opt/glassfishv3/glassfish/bin$ ./asadmin generate-jvm-report | grep time General Java Runtime Environment Information for the VM: 2487@iSoft31 java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_01-b08 org.glassfish.additionalOSGiBundlesToStart = org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall user.timezone = Asia/Taipei </code>
- 參考網址