2014-09-24

查找LINUX 版本, KERNEL 版本

Check the Linux Version, Release name and Kernel version

  • uname -a (Print all Information)
  • uname -r (Print the kernel name)
  • uname -m
  • cat /proc/version
  • cat /etc/issue
  • cat /etc/redhat-release
  • lsb_release –a
  • tail /etc/redhat-release

2014-07-10

[Solved] Access denied ("java.util.PropertyPermission" "user.timezone" "write")

解決 Access denied ("java.util.PropertyPermission" "user.timezone" "write") 問題

Edit $JAVA_HOME\lib\security\java.policy (Both Program File and Program File x86)


grant {
...  

    permission java.util.PropertyPermission "user.timezone", "write";
};

save as java.policy and then replace the original. 

Restart java.exe process

2014-07-09

取得資料夾和子資料夾的權限和路徑列表

Get the List of Sub Directories with Their Owner & Permissions & Full Paths

先以find -type d找出所有/var以內所有資料夾的路徑,然後再用ls -dl 列出

ls -dl `find /var -type d`

source: http://www.ducea.com/2009/06/05/linux-tips-get-the-list-of-subdirectories-with-their-owner-permissions-and-full-paths/

2014-04-24

Enable JMX on tomcat7 running as Windows service

  1. Start 'Tomcat Configure' --> 'Java' tab --> 'Java Options' text box --> Append the followings -Dcom.sun.management.jmxremote.port=8090 -Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false

  2. Save, Exit and then restart the service
  3. Connect to the JMX console
  4. Start jconsole from your JDK installation location
    example: C:\java\jdk1.6.0_37\bin\jconsole.exe
  5. Click 'New Connection'
  6. Checked 'Remote Process'
  7. Enter hostname:8090

Review Who is Connected to Windows Shared Folder

  1. Open Computer Management Console     Windows Key + R -> compmgmt.msc      2. Expand System Tools -> Shared Folder -> Sessions ...