-
终于能用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
...... [更多...]