-
終於能用NX Server了
按照 [url= wiki.centos.org/HowTos/FreeNX] wiki.centos.org/HowTos/FreeNX [/url] 上面的提示,一步步做下去,結果連服務器的時候出現如下提示:
...... [更多...] -
一個一直困惑我的svn的使用問題
原來在FAQ裡面寫的清清楚楚了,現在才發現
之前都是chown -R apache.apache,很不安全
[quote]
I'm managing a website in my repository. How can I make the live site automatically update after every commit?
This is done all the time, and is easily accomplished by adding a post-commit hook script to your repository. Read about hook scripts in Chapter 5 of the book. The basic idea is to make the "live site" just an ordinary working copy, and then have your post-commit hook script run 'svn update' on it.
...... [更多...] -
在Windows下刪除所有指定的文件和文件夾
刪除文件容易
del /S x.bak
刪除當前目錄和所有子目錄下所有的.bak文件
刪除目錄麻煩些,搜索了一下,找到答案
for /f "tokens=*" %a in ('dir /s /b folder 2^>NUL') do rd /s /q "%a"
刪除當前目錄和所有子目錄下所有folder目錄 -
把yourdomain.com的email服務遷移到Gmail上
很多人都在用Gmail,Gmail也的確挺不錯
如果你注冊了域名,你也可以很輕松將yourdomain.com的所有email都遷移到gmail平台。
這麼做的好處主要是穩定性。一般虛擬主機服務商所提供的email都不是很穩定(你想你才付他們多少錢一個月),因此丟信也好,連不上也罷,都是經常的事情。而gmail相對則穩定的多。
對於租用專用主機的朋友,拋開穩定性不提,配置sendmail可能是這個世界上最麻煩的事情 ,因此省點時間,還是用gmail吧。
...... [更多...] -
推薦兩款很實用的軟件 ExamDiff Pro, Regexbuddy
www.prestosoft.com/edp...iffpro.asp
[quote] * Compares text files, binary files, and directories.
* Highlights differences down to the level of lines, words or characters.
* Highlights document syntax.
* Fuzzy line matching
* Ability to recognize moved text blocks
* Allows to add manual synchronization points to text file comparison.
* Compares directly from Windows Explorer.
...... [更多...] -
一個非常簡單的尋找某個特定文件被訪問紀錄的程序
how to use:
1) set permission to 755
2) ./readlog.pl log_file_name Target_file_name
...... [更多...] -
shared hosting 虛擬主機
shared hosting 虛擬主機
shared hosting,或者說虛擬主機,就是在一台機器上開很多賬戶,每個賬戶都有自己的空間和訪問權限。現在越來越的服務商都給用戶提供了Shell的訪問權限,因此在這種情況下,用戶就是一個普通的linux用戶。
一般來說,每個用戶都對自己的主目錄,例如/var/www/html/vhost/zhangsan,用戶zhangsan對自己的目錄有完全的訪問權限,而對其他目錄,根據機器設置不同,可能只有讀的權限,可能連讀的權限都沒有(例如可以通過chroot設置)。
...... [更多...] -
推薦一本書 Using Drupal
Using Drupal
概述了如何用Drupal來做幾種常見類型的網站
Drupal是個很好的軟件 -
主機配置多個IP的方法
如果你有多個IP地址,你可以把它們都配置在同一台主機上
在Linux環境下,一台主機配置多個IP很容易
(以下均以CentOS 5.2為例)
步驟:
cd /etc/sysconfig/network-scripts
ls
你會發現一個叫ifcfg-eth0的文件
cat ifcfg-eth0
寫道: #/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=76.xx.xx.xx
NETMASK=255.255.255.128
GATEWAY=76.xx.xx.xx
HWADDR=00:30:483:F1C
...... [更多...] -
默認Apache文件目錄設置Apache Password Protected Directory失敗
在新租用的 CentOS 5.2上想給phpmyadmin所在目錄設置為apache password protected directory,就是那種彈出窗口,要用戶輸入用戶名和密碼的那種。
設置這種密碼保護目錄我很熟悉,本來以為就是幾分鍾的事情。
第一,命令狀態 vi .htaccess
輸入如下內容
寫道: AuthUserFile /var/www/html/phpmyadmin/.htpasswd
AuthName "DababaseAdministration"
AuthType Basic
require valid-user
第二,
htpasswd -c .htpasswd phpmyadmin
...... [更多...]