Archive for January, 2012

Linux建立Swap分区文件并自动mount

amaç:建立一个2G大小的swap分区并在系统启动时自动mount
系统环境RedHat53

1. dd if=/dev/zero of=/swapfile bs=1k count=2048000
2. mkswap /swapfile
3. swapon /swapfile
4. 修改/etc/fstab使其启动时自动mount
在/etc/fstab中增加如下语句
/swapfile swap swap defaults 0 0
5. 搞定!

Yorumlar

kloxo更新后出现:Başlangıç ​​httpd: Syntax error on line 12 of /home/apache/conf/defaults/_default.conf

Başlangıç ​​httpd: Syntax error on line 12 of /home/apache/conf/defaults/_default.conf:
UserDirenablekeyword requires a list of usernames

修改

/usr/local/lxlabs/kloxo/httpdocs/lib/domain/web/driver/web__apachelib.php

文件中把所有

$string .= “\t\tUserDir enabled\n

改成

$string .= “\t\tUserDir enabled *\n

koşmak:

/script/fixweb

service httpd restart

Yorumlar