2012年3月:测试

© ㄒiger / Posted in 主机域名 / March 30, 2012

if ($http_referer ~* tiger.im) {
rewrite ^/ http://www.tiger.im/;
} 

© ㄒiger / Posted in 主机域名 / March 26, 2012

Creating container private area (centos-5-x86_64)
Performing postcreate actions
CT configuration saved to /etc/vz/conf/109.conf
Container private area was created
Restarting container
Starting container ...
Container is mounted
Setting CPU units: 1000
Container start in progress...
Changing password for user root.
passwd: all authentication tokens updated successfully.
Adding IP address(es): 63.223.**.**
Shutting down loopback interface:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface venet0:  [  OK  ]
CT configuration saved to /etc/vz/conf/109.conf
CT configuration saved to /etc/vz/conf/109.conf
UB limits were set successfully
CT configuration saved to /etc/vz/conf/109.conf
UB limits were set successfully
CT configuration saved to /etc/vz/conf/109.conf
CT configuration saved to /etc/vz/conf/109.conf
CT configuration saved to /etc/vz/conf/109.conf
CT configuration saved to /etc/vz/conf/109.conf
UB limits were set successfully
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
CT configuration saved to /etc/vz/conf/109.conf
UB limits were set successfully
CT configuration saved to /etc/vz/conf/109.conf
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container ...
Container is mounted
Adding IP address(es): 63.223.**.**
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
Container start in progress...
CT configuration saved to /etc/vz/conf/109.conf
CT configuration saved to /etc/vz/conf/109.conf

© ㄒiger / Posted in 主机域名 / March 25, 2012

默认装完directadmin 是使用MYSQL 5.0
我们可以自行升级到5.1不过还是建议使用DIRECTADMIN的build升级方式
下面是方法:

新版的DirectAdmin已经升级到MYSQL5.1了 这步骤可以忽略

cd /usr/local/directadmin/custombuild

编辑options.conf,修改对应升级行为

vi options.conf

修改相应项目如下


mysql=5.1
mysql_inst=yes
mysql_backup=yes

保存退出,然后执行

继续阅读全文... »

© ㄒiger / Posted in 主机域名 / March 22, 2012

Assuming you currently have a Centos 5 64-bit that was installed by us (if you have or want 32-bit, set/use 32-bit accordingly).

Below will reinstall to Centos 5.6 64-bit, change it accordingly if you want other versions of centos.

1. SSH to your server and login as root

2. Type below:

mkdir /centos_install
cd /centos_install
wget http://vault.centos.org/5.6/os/x86_64/images/pxeboot/initrd.img
wget http://vault.centos.org/5.6/os/x86_64/images/pxeboot/vmlinuz
cp vmlinuz /boot/vmlinuz.cent.pxe
cp initrd.img /boot/initrd.img.cent.pxe


3.Add to/Edit the grub menu.lst entry to load the pxe kernel (note: if you were already using grub you do not need to type again the first 2 lines)

nano -w /etc/grub.conf


 

title Centos Install (PXE)
root (hd0,0)
kernel /vmlinuz.cent.pxe vnc vncpassword=YOURPSW headless ip=YOURIP netmask=255.255.255.0 gateway=GATEWAYIP dns=8.8.8.8 ksdevice=eth0 method=http://vault.centos.org/5.6/os/x86_64/ lang=en_US keymap=us
initrd /initrd.img.cent.pxe

YOURPSW with the VNC password you want setup

YOURIP with the ip of the box…

GATEWAYIP with the gateway assigned to your box

Hint: you can see the gateway ip by issuing
     
route -n | grep UG
once you have done this you need to count the number of times “title” appears in the file, press ctrl +x, and save the file


4. Reboot the server by typing 

继续阅读全文... »

© ㄒiger / Posted in 主机域名 / March 17, 2012

:lol  VPS.NET的信用卡。只是

购买。:http://t.cn/zOxwwDC

https://control.vps.net/trial-signup

VPS.NET 30% 首月折扣. 优惠码:TURNK30  点击进入VPS.NET

还有个终身优惠码 :WHT 优惠25%还是30%的。可以试试。

test ip:50.31.252.13 test file download 优惠码:WHT