Linux VPS 性能测试工具 UnixBench 脚本 发表于2013-07-05由jgh004 回复将下面这段保存为 test.sh , 并输入 ./test.sh 即可自动下载安装 UnixBench 进行性能测试.Shell mkdir -p ~/unixbench; cd ~/unixbench; yum -y install perl-Time-HiRes wget make gcc gcc-c gcc-c++ autoconf time; wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz; tar zxvf unixbench-5.1.2.tar.gz; cd unixbench-5.1.2; sed -i "s/GRAPHIC_TESTS = defined/#GRAPHIC_TESTS = defined/g" ./Makefile … 阅读全文
CentOS VPS 建立 PPTP VPN 服务 发表于2013-05-19由jgh004 2当前服务器环境: Centos 6PPTP的配置主要有下面五个步骤:验证内核是否加载了MPPE模块安装所需的软件包配置PPP和PPTP的配置文件打开内核的IP转发功能启动pptpd守护进程配置iptables防火墙放行和转发规则1、验证内核是否加载了MPPE模块:Shell modprobe ppp-compress-18 && echo MPPE is ok1modprobe ppp-compress-18 && echo MPPE is ok2、安装所需的软件包:安装前确保添加了 epel 源, 如果没有, 请参考 <<CentOS 添加常用 yum … 阅读全文
Linux vps 增加 删除 swap 交换分区 发表于2013-05-19由jgh004 回复所有操作均需 root 权限1.创建 swap 交换分区首先用 fdisk -l 查看硬盘分区情况Shell fdisk -l1fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector … 阅读全文