使用Xen Shell来管理Xen VPS
[ 2009/09/16 23:40 | by suibing ]
现在推荐使用开源的Xen Shell来免费理Xen VPS,Xen Shell官方免费址: http://www.xen-tools.org/software/xen-shell/目前功能只有,重启,关机,开机等,另外没有web gui也是一个遗憾。不过安全第一呀PS:OpenVZ的VPS可以考虑用 Proxmox VE 来免费理,免费!不过个人还是喜欢HyperVM,尽免费有漏洞,不用的时候不开放就OK了
关于本站默认风格与IE7等的不兼容问题
[ 2009/09/16 23:40 | by suibing ]
最近发现本站默认风格与IE7等有兼容性问题,主要问题表现在菜单栏被隐藏掉,如果有此问题,请大家更换风格!!!
关于IIS Isapi Rewrite反向代理不成功的一些问题。
[ 2009/09/16 23:40 | by suibing ]
今晚打算配置ReWrite 反向代理。因为之前用的是IsApi Rewrite Life版,不用安装,只要在IIS里添中过滤器就行了,现在用这个FULL版的,也是这样做,感觉这样子会比较简捷,和绿色版的差不多。但是,安照我之前准备好的资料,怎么也配置不成功。无非就是用这二句:RewriteCond Host: www\.1\.com RewriteProxy (.*) http\://www.2.com$1 [I,U]于是在网上找资料,差不多把网络翻了一遍,千篇一律的都是上面这个例子,只是有些把上面的域名改成他们的域名而已,有点气愤啊,感觉网络有时就像垃圾推,东西多,却都是差不多一样的,复制、采集而已,而且还在文章里,说配置RewriteProxy 非常地简单,不用多说了,哎,看来我比较笨。终于配置成功了,就把方法说一下,希望可以帮得到遇上同样问题的朋友。安装IsApi Rewrite FULL版的时,如果要用到RewriteProxy 功能,就不能直接复制,一定要安装,刚开始,我也是为了整洁,在安装后复制一份,然后在IIS再添加,启动、功能和LIFE版的一样,也未出现任何错误,但就是用RewriteProxy 时,返回404错误,啥都没有,httpd.parse.errors日记也不出错,一直找不到原因,网上的资料都是同一个例子,没啥实现意义。在找了4个小时,重启IIS、电脑N次,重装ISAPI REWRITE N+1次之后,让我在一次偶然的机会,在ISAPI REWRITE 的安装目录里看到一个叫“proxycfg.vbs”的VBS文件,我靠,这个不就是ProxyConfig的意思么,把上运行一下,结果提示在配置RewriteProxy ,还用到了rwhelper.dll。在配置RewriteProxy 的时候,在读到注册表,应该是配置的东西都存注册表了,所以直接复制过来的文件不能用,要重新安装后方可以。所以说,网上的资料,很多都是转帖,真正用过的还真不多,像我也喜欢转帖。有时想想真是误人子弟啊。总结一下:1、RewriteProxy (.*) http\://www.2.com$1 [I,U] 在这一句里,有N多的文章里,用的是[I,F,U],值得注意的是,如果加上F,在代理服务器反正跳转时,会出现不太正常的情况,如ASP里用到的:Response.Redirect时。2、如果是用了破解版的,要先注册完软件后再配置RewriteProxy。3、每次修改“httpd.ini”后,要重启IIS,可用命令:iisreset /restart。4、因为运行proxycfg.vbs时要用到注册表信息,目前我只知道全新安装后才会正常。5、Isapi Rewrite 是居于IIS的,所以请求的域名,一定要存在IIS里,如需要请求:www.qiqibang.cn这个域名,就一定要在域名所指向的服务器里,绑定有这个域名的站点。6、如果安装Isapi Rewrite后还是无法加载,可以把Isapi Rewrite的安装目录改为EveryOne可读写,这个方法非常有效和快速,当然我不知道会不会有什么权限上的安全问题,网上有很多资料说是添加“Servcie”,的确是这样,不过有时需要重启电脑才可以加载。7、配置REWRITE 的站点时,存放httpd.ini的目录要有“Servcie”的读写权限。好了,写完了,洗澡睡觉。。
Virtualization Master : Xen VM, OpenVZ VPS, Virtuo
[ 2009/09/16 23:40 | by suibing ]
How to install xen hypervm in centosThe simple way to install xen is. Create/boot 500mb/swap 20000mb/lvm in free spacecreate / in ext3 of 10000mb and continue the installation with least software.Once completed.For hypervm make sure selinux is disabled$ setenforce 0 $ wget http://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh $ sh ./hypervm-install-master.sh --virtualization-type=xen/openvz/NONE Here we need xenRun the installation of hypervm xen. Once completed.
cd /usr/local/lxlabs/hypervm/httpdocs/
lphp.exe ../bin/misc/fixcentos5xen.php
If hyperVM didn't automatically recognize the xen driver, you can run the command below to forcibly set it.
-------------
cd /usr/local/lxlabs/hypervm/httpdocs/
lphp.exe ../bin/common/setdriver.php --server=localhost --class=vps --driver=xen
What’s LVM? Why using Linux Logical Volume Manager or LVM?These questions are not the scope here. But in brief, the most attractive feature of Logical Volume Manager is to make disk management easier in Linux! Basically, LVM allows users to dynamically extend or shrink Linux “partition” or file system in online mode! The LVM can resize volume groups (VG) online by adding new physical volumes (PV) or rejecting those existing PVs attached to VG.A visualized concept diagram of the Linux Logical Volume Manager or LVM.A visualized concept diagram of the Linux Logical Volume Manager or LVMIn this 3-minutes Linux LVM guide, let’s assume that* The LVM is not currently configured or in used. Having say that, this is the LVM tutorial if you’re going to setup LVM from the ground up on a production Linux server with a new SATA / SCSI hard disk.* Without a luxury server hardware, I tested this LVM tutorial on PC with the secondary hard disk dedicated for LVM setup. So, the Linux dev file of secondary IDE hard disk will be /dev/hdb (or /dev/sdb for SCSI hard disk).* This guide is fully tested in Red Hat Enterprise Linux 4 with Logical Volume Manager 2 (LVM2) run-time environment (LVM version 2.00.31 2004-12-12, Library version 1.00.19-ioctl 2004-07-03, Driver version 4.1.0)!How to setup Linux LVM in 3 minutes at command line?1. Login with root user ID and try to avoid using sudo command for simplicity reason.2. Using the whole secondary hard disk for LVM partition:fdisk /dev/hdbAt the Linux fdisk command prompt,1. press n to create a new disk partition,2. press p to create a primary disk partition,3. press 1 to denote it as 1st disk partition,4. press ENTER twice to accept the default of 1st and last cylinder - to convert the whole secondary hard disk to a single disk partition,5. press t (will automatically select the only partition - partition 1) to change the default Linux partition type (0×83) to LVM partition type (0×8e),6. press L to list all the currently supported partition type,7. press 8e (as per the L listing) to change partition 1 to 8e, i.e. Linux LVM partition type,8. press p to display the secondary hard disk partition setup. Please take note that the first partition is denoted as /dev/hdb1 in Linux,9. press w to write the partition table and exit fdisk upon completion.3. Next, this LVM command will create a LVM physical volume (PV) on a regular hard disk or partition:pvcreate /dev/hdb14. Now, another LVM command to create a LVM volume group (VG) called vg0 with a physical extent size (PE size) of 16MB:vgcreate -s 16M vg0 /dev/hdb1Be properly planning ahead of PE size before creating a volume group with vgcreate -s option!5. Create a 400MB logical volume (LV) called lvol0 on volume group vg0:lvcreate -L 400M -n lvol0 vg0This lvcreate command will create a softlink /dev/vg0/lvol0 point to a correspondence block device file called /dev/mapper/vg0-lvol0.6. The Linux LVM setup is almost done. Now is the time to format logical volume lvol0 to create a Red Hat Linux supported file system, i.e. EXT3 file system, with 1% reserved block count:mkfs -t ext3 -m 1 -v /dev/vg0/lvol07. Create a mount point before mounting the new EXT3 file system:mkdir /mnt/vfs8. The last step of this LVM tutorial - mount the new EXT3 file system created on logical volume lvol0 of LVM to /mnt/vfs mount point:mount -t ext3 /dev/vg0/lvol0 /mnt/vfsTo confirm the LVM setup has been completed successfully, the df -h command should display these similar message:vgdisplay vg0To check or display volume group setting, such as physical size (PE Size), volume group name (VG name), maximum logical volumes (Max LV), maximum physical volume (Max PV), etc.pvscanTo check or list all physical volumes (PV) created for volume group (VG) in the current system.vgextendTo dynamically adding more physical volume (PV), i.e. through new hard disk or disk partition, to an existing volume group (VG) in online mode. You’ll have to manually execute vgextend after pvcreate command that create LVM physical volume (PV).Now login to the hypervm as adminhttp://192.168.1.1:8888 (This should be your IP address)Go to server > Home > Location >lvm:vg0
【CentOS】添加国内yum地址
[ 2009/09/16 23:40 | by suibing ]
cd /etc/yum.repos.dmv CentOS-Base.repo CentOS-Base.repo.savevi CentOS-Base.repo==============================================================[base]name=CentOS-$releasever - Basebaseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#released updates [updates]name=CentOS-$releasever - Updatesbaseurl=http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#packages used/produced in the build but not released[addons]name=CentOS-$releasever - Addonsbaseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasbaseurl=http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusbaseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5





