以下轉貼至PTT JAVA討論版csieflyman
備份用
Continue reading
glassfish可以在兩台實體機間做cluster
確保兩台機器上的application共享session……等狀態
兩台機器間會使用ssh做溝通隨時同步狀態,並在其中一台上面有DAS來管理cluster
Continue reading
前兩步是要用oracle jdk取代open jdk,glassfish安裝從第3步開始
Continue reading
用firefox瀏覽器取得https網站的server crt,並存成local.crt
1google firefox get ssl cert利用keytool產生java client端要用的client keysotre
12keytool -import -alias ocsg.keystore -keystore ocsg.keystore -file localhost.crt#建立的同時要輸入密碼,密碼會在下一步用到
要先裝java
可參考insall oracle jdk at linux(CentOS)
- 下載glassfish
解壓縮到/usr/glassfish
1unzip glassfish4.zip開啟glassfish server
12cd /usr/local/glassfish4/glassfish/bin./asadmin start-domain domain1
一些maven指令筆記
Continue reading
use snmptrap to send
|
|
just a very easy httppost example for java
Continue reading
just a code snippet about multi-thread in java
Continue reading