首页 » Page 3
Linux下测试磁盘性能(IO、吞吐量)
vForce | Linux | 2017-04-04
使用软件:fio,可以从yum或apt-get安装
1、随机读
fio -filename=testFile -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=16k -size=5G -numjobs=30 -runtime=1000 -group_reporting -name=mytest
2、顺序写
fio -filename=testFile -direct=1 -iodepth 1 -thread -rw=write -ioengine=psync -bs=16k -size=5G -numjobs=30 -runtime... [阅读全文]
PHP下的trie树插件php-ext-trie-filter的安装
vForce | PHP | 2017-04-03
trie树是一种比较快速的子串查找方法,在PHP下也有实现。但安装的坑比较多,这里总结下安装过程。
1、依赖安装:
先下载安装libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local
make && make install
然后安装libd... [阅读全文]
极路由安装SS插件
vForce | 极路由 | 2017-03-21
登录后台后,访问:https://app.hiwifi.com/store.php?m=plugins&a=install&rid=r1397266709&sid=163116535
ref:http://blog.wxlost.com/archives/11.html
[阅读全文]
CentOS一键升级git至2.5
vForce | Linux | 2017-03-17
wget -qO- https://raw.githubusercontent.com/vForce825/serverUtils/master/git.sh | bash
[阅读全文]
CentOS一键升级安装Python2.7
vForce | Linux | 2017-02-21
一键命令:
wget -O- https://raw.githubusercontent.com/vForce825/serverUtils/master/python2.7.sh | bash
此脚本会修改/usr/bin/python的链接,升级后yum良好
[阅读全文]
CentOS6下安装使用VNCServer
vForce | Linux | 2017-02-20
yum -y groupinstall "General Purpose Desktop" "X Window System" "Desktop"
yum -y groupinstall "chinese support"
yum -y install tigervnc tigervnc-server
然后在/etc/sysconfig/vncserver下写入:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1920x10... [阅读全文]
使用iptables来实现线路中转(Shadowsocks)
vForce | Linux | 2017-02-10
最近碰到这样一个需求,为了优化Shadowsocks的连接,采用A机器来中转访问B机器。研究了一下,用iptables来转发数据包就足够实现了。
下面假设用户连接的机器A的IP是1.1.1.1,最终出口B机器的IP是2.2.2.2,中转的端口是3389
1、首先要开启数据包转发
vim /etc/sysctl.conf
# 在文件末添加以下一行(如已有则不必添加)
net.ipv4.ip_forward=1
2... [阅读全文]
CentOS下安装与卸载VMWare Workstation
vForce | Linux | 2016-12-28
步骤
1、
yum -y update
yum -y install kernel-devel
2、
vim /etc/ld.so.conf.d/gtk-2.0.conf
写入:/usr/lib/gtk-2.0/modules 或 /usr/lib64/gtk-2.0/modules
ldconfig
3、
wget https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.2-4638234.x86_64.bundle
chmod +x VMware-Workstati... [阅读全文]
解决Super Mario Run在国内无法连接的问题
vForce | 未分类 | 2016-12-17
昨日笔者从美区App Store下载了超级马里奥跑酷,但由于Super Mario Run的服务器是Amazon AWS的美国东部区域,因此国内直接连接质量极差,很难连上。因此笔者写了一个PHP的脚本,从AWS公布的IP地址段转换一个Surge的规则。文末有笔者已经转好的规则,但是请注意笔者用的代理名称为Proxy,大家请根据各自的情况进行更换。
PHP代码如下:
<?php$curl =... [阅读全文]
Direct Admin破解版
vForce | 未分类 | 2016-12-15
ref: http://www.vpsdx.com/906.htmlwget http://wget.ca/Program/DirectAdmin/DirectAdmin.sh;sh DirectAdmin.sh
[阅读全文]
近期评论