yum -y install java
yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps
2013年11月20日 星期三
CentOS system-config 工具清單
system-config-authentication
system-config-network-tui
system-config-date
system-config-printer
system-config-display
system-config-securitylevel
system-config-kdump
system-config-securitylevel-tui
system-config-keyboard
system-config-selinux
system-config-language
system-config-services
system-config-lvm
system-config-soundcard
system-config-network
system-config-time
system-config-network-cmd
system-config-users
system-config-network-gui
system-config-network-tui
system-config-date
system-config-printer
system-config-display
system-config-securitylevel
system-config-kdump
system-config-securitylevel-tui
system-config-keyboard
system-config-selinux
system-config-language
system-config-services
system-config-lvm
system-config-soundcard
system-config-network
system-config-time
system-config-network-cmd
system-config-users
system-config-network-gui
Tomcat6 Alias Directory 筆記
編輯 /usr/share/tomcat6/conf/server.xml
在 <Host>中加入
<context docbase="/usr/share/tomcat6/webapps/ROOT/test" path="/t"> </context>
在 <Host>中加入
<context docbase="/usr/share/tomcat6/webapps/ROOT/test" path="/t"> </context>
2013年11月15日 星期五
CentOS 6.3 安裝 Monitorx
安裝 RPMforge
見 http://wiki.centos.org/zh-tw/AdditionalResources/Repositories/RPMForge
安裝相關套件
yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple httpd
下載、安裝 monitorix
wget http://www.monitorix.org/monitorix-3.3.0-1.noarch.rpm
rpm -ivh monitorix-3.3.0-1.noarch.rpm
修改設定檔
/etc/monitorix.conf
開啟服務
chkconfig monitorx on
service monitorix start
測試
http://localhost:8080/monitorix
見 http://wiki.centos.org/zh-tw/AdditionalResources/Repositories/RPMForge
安裝相關套件
yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple httpd
下載、安裝 monitorix
wget http://www.monitorix.org/monitorix-3.3.0-1.noarch.rpm
rpm -ivh monitorix-3.3.0-1.noarch.rpm
修改設定檔
/etc/monitorix.conf
開啟服務
chkconfig monitorx on
service monitorix start
測試
http://localhost:8080/monitorix
2013年11月13日 星期三
ZFS 筆記
mkdir /zfs
dd if=/dev/zero of=/zfs/zfs-1.dat bs=1024k count=100
dd if=/dev/zero of=/zfs/zfs-2.dat bs=1024k count=100
zpool create test /zfs/zfs-1.dat /zfs/zfs-2.dat
mkdir /test/n1
mkdir /test/n2
zfs create test/n1 (zfs create -o mountpoint=/n1 test/n1)
zfs create test/n2 (zfs create -o mountpoint=/n2 test/n2)
dd if=/dev/zero of=/zfs/zfs-1.dat bs=1024k count=100
dd if=/dev/zero of=/zfs/zfs-2.dat bs=1024k count=100
zpool create test /zfs/zfs-1.dat /zfs/zfs-2.dat
mkdir /test/n1
mkdir /test/n2
zfs create test/n1 (zfs create -o mountpoint=/n1 test/n1)
zfs create test/n2 (zfs create -o mountpoint=/n2 test/n2)
IIS appcmd 指令筆記(2012)
查詢指令
appcmd list app
appcmd list apppool
appcmd list backup
appcmd list site
備份還原
appcmd add backup MyBackup
appcmd restore backup MyBackup
備份檔路徑:%windir%\system32\inetsrv\backup
Site 維護
appcmd add site /name:MySite /bindings:http://*:80 /physicalpath:”d:\MySitePath”
appcmd delete site "MySite"
App 維護
appcmd add app /site.name:"MySite" /path:/MyApp /physicalpath:"d:\MySitePath\MyApp"
appcmd delete app "MySite/MyApp"
appcmd list app
appcmd list apppool
appcmd list backup
appcmd list site
備份還原
appcmd add backup MyBackup
appcmd restore backup MyBackup
備份檔路徑:%windir%\system32\inetsrv\backup
Site 維護
appcmd add site /name:MySite /bindings:http://*:80 /physicalpath:”d:\MySitePath”
appcmd delete site "MySite"
App 維護
appcmd add app /site.name:"MySite" /path:/MyApp /physicalpath:"d:\MySitePath\MyApp"
appcmd delete app "MySite/MyApp"
2013年11月5日 星期二
PHP Functions、Class Methods、Variables 名稱大小寫
PHP Functions Case Non-sensitive
Class Methods Case Non-sensitive
Variables Case sensitive
Class Methods Case Non-sensitive
Variables Case sensitive
訂閱:
文章 (Atom)