Adding the Cherokee Web Server PPA to Ubuntu

The following commands will add the Cherokee Web Server PPA to Ubuntu (version 9.10 and higher). The first command adds the extremely handy add-apt-repository program to your system. The second adds the Cherokee Personal Package Archive.

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:cherokee-webserver/ppa

At the moment, Cherokee is at version 1.0.9.

If you don’t already have Cherokee installed and you want to install it I find the following combination of packages most useful:

sudo apt-get update
sudo apt-get install cherokee cherokee-doc libcherokee-mod-libssl libcherokee-mod-streaming libcherokee-mod-rrd libcherokee-mod-admin spawn-fcgi

http://www.cloudartisan.com/2010/11/adding-the-cherokee-web-server-ppa-to-ubuntu/

centos 6 安装 cherokee

1,

wget http://www.cherokee-project.com/download/1.2/1.2.101/cherokee-1.2.101.tar.gz \
-O - | gzip -dc - | tar xfv -

2,

./configure --localstatedir=/var     \
            --prefix=/usr            \
            --sysconfdir=/etc        \
            --with-wwwroot=/var/www

3,

yum install  gcc
yum install gettext
yum install make
make
make install
cherokee-admin

X2.0 远程附件与本地附件互换SQL语句

由于X2.0使用的附件分表,所以1.5的语句失效,应分别设置

本地附件转为远程附件:(注意相关的附件上传设置)
update pre_forum_attachment_0 set remote = ’1′;
update pre_forum_attachment_1 set remote = ’1′;
update pre_forum_attachment_2 set remote = ’1′;
update pre_forum_attachment_3 set remote = ’1′;
update pre_forum_attachment_4 set remote = ’1′;
update pre_forum_attachment_5 set remote = ’1′;
update pre_forum_attachment_6 set remote = ’1′;
update pre_forum_attachment_7 set remote = ’1′;
update pre_forum_attachment_8 set remote = ’1′;
update pre_forum_attachment_9 set remote = ’1′;
复制代码
远程附件转为本地附件:
update pre_forum_attachment_0 set remote = ’0′;
update pre_forum_attachment_1 set remote = ’0′;
update pre_forum_attachment_2 set remote = ’0′;
update pre_forum_attachment_3 set remote = ’0′;
update pre_forum_attachment_4 set remote = ’0′;
update pre_forum_attachment_5 set remote = ’0′;
update pre_forum_attachment_6 set remote = ’0′;
update pre_forum_attachment_7 set remote = ’0′;
update pre_forum_attachment_8 set remote = ’0′;
update pre_forum_attachment_9 set remote = ’0′;

 

 

相册

 

UPDATE `pre_home_pic` SET `remote` =1

centos 系统时间同步

yum install ntp

安装后执行

ntpdate time.nist.gov

即可同步国际时间..

开机后自动同步时间:

vi /etc/rc.d/rc.local中,最下面添加

ntpdate time.nist.gov

或者rdate -s time.nist.gov(有时连接不上)

说明:第二中方法也可直接在命令行输入,如:
#ntpdate time.nist.gov

!important

 

!important

 

随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.)

 

</style>

 

#wrapper

 

{

 

width: 100px!important; /* IE7+FF */

 

width: 80px; /* IE6 */

 

}

 

</style>