顯示具有 configuration 標籤的文章。 顯示所有文章
顯示具有 configuration 標籤的文章。 顯示所有文章

2011年11月14日 星期一

SAMBA tuned configuration

每次都要進去改SAMBA的設定檔(/etc/smb/smb.conf),有點小麻煩,做個記錄。
[global]
   workgroup = MYGROUP
   server string = Samba Server
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no
   security = share

   unix charset = utf8
   display charset = utf8
   dos charset = cp950
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65535 SO_SNDBUF=65535
   syslog = 1
   syslog only = yes
   strict sync = no
   sync always = no

   log level = 1
   read raw = yes
   write raw = yes
   oplocks = yes
   max xmit = 65535
   dead time = 15
   getwd cache = yes
   lpq = 30
   large readwrite = no

[123]
   path = /mnt/123
   public = yes
   writable = yes 
Reference: 技術沒有難度,有難度的是態度

2011年10月6日 星期四

讓Maven可以deploy war到遠端Tomcat

修改tomcat-user.xml (在 tomcat安裝目錄/conf/ 裡面),然後重新開啟Tomcat



   
   
   
   
  


修改pom.xml,設定Tomcat位置及登入配置
 
  ${WAR_NAME}
  
   
    maven-war-plugin
    2.1.1
    
     WEB-INF/web.xml
    
   

   
    org.codehaus.mojo
    tomcat-maven-plugin
    
     http://${IP}:8080/manager/html
     ${ACCOUNT}
     ${PASSWORD}
     ${finalName}