Debian下安装Shadowsocks, supervisor守候进程

Debian下安装配置ShadowSocks的方法 1.系统更新并安装pip Shadowsocks aptitude update aptitude install python-pip pip install shadowsocks 2.创建配置文件 /etc/shadowsocks.json { "server":"0.0.0.0", "server_port":1080, "password":"password", "timeout":600, "method":"aes-256-cfb" } 配置的说明: Name Explanation server the address your server listens(服务器IP) local_address the address your local listens(本地代理地址) local_port local port(本地代理端口) port_password password used for encryption(自己设定的服务器端口和密码) timeout in seconds(超时断开,以秒为单位) method default: “aes-256-cfb”, see Encryption(加密方式) fast_open use TCP_FASTOPEN, true / false(是否使用TCP) workers number of workers, available on Unix/Linux(这个只在Unix和Linux下有用,可不设置) 3.启动 ssserver ssserver -c /etc/shadowsocks.json start 4....

2017-06-16 · 1 分钟 · admin

使用openssl申请apple 开发证书

首选需要生成privkey在生成csr文件用于上传到apple openssl genrsa -out privkey.key 2048 生成 csr openssl req -new -key privkey.key -out privkey.csr 将apple开发者中心得到的cer文件转换为p12 首先需要装cer转换为pem openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.cer.pem -outform PEM 然后在转换为p12,过程需要一个密码,在导入的时候使用 openssl pkcs12 -export -inkey privkey.key -in ios_distribution.cer.pem -out ios_distribution.p12

2016-07-08 · 1 分钟 · admin

mysql innodb myisam 表格式互转

innodb 转换为 myisam SELECT CONCAT('ALTER TABLE ', table_name, ' ENGINE=MyISAM;') AS sql_statements INTO OUTFILE '/tmp/result.txt' FROM information_schema.tables AS tb WHERE table_schema = 'TableName' AND `ENGINE` = 'InnoDB' AND `TABLE_TYPE` = 'BASE TABLE' ORDER BY table_name DESC; source /tmp/result.txt; myisam 转换为 innodb SELECT CONCAT('ALTER TABLE ', table_name, ' ENGINE=InnoDB;') AS sql_statements INTO OUTFILE '/tmp/result.txt' FROM information_schema.tables AS tb WHERE table_schema = 'TableName' AND `ENGINE` = 'MyISAM' AND `TABLE_TYPE` = 'BASE TABLE' ORDER BY table_name DESC; source /tmp/result....

2014-11-19 · 1 分钟 · admin

升级到4.0并转移到腾讯运,速度真是爽爽的

真心便宜

2014-10-15 · 1 分钟 · admin

namecheap 大象节活动 ,转移7.88优惠

15 号结束,优惠码 SAVEDUMBO ,有需要的同学上吧。

2014-08-15 · 1 分钟 · admin

基于 Quercus 的手游项目终于上线了

经过半年的开发,我们第一款手游戏终于开发完毕,架构使用了 netty + Quercus 实现用 php 通过 websocket 与客户端通信。 项目上线近一个月,基本稳定。而且不存在性能方面问题,之前在内网测试,pc 机 4G 内存,在线 1000 人,没有卡动感觉。 这个数 字足以满足我们的需求, 想用 Quercus 大胆的用吧,到 4.0.39 应该会更完美,希望支持 Quercus 的多起来,与 hhvm 的火爆程度 真是是没法比。

2014-01-27 · 1 分钟 · admin

debian openvz vps 优化

比较喜欢 debian vps ,系统比较简洁,而且很省内存,但大部分的 vps 商都使用的标准模版,带了不少垃圾东西。 首先进行系统更新 apt-get update && apt-get upgrade 安装sysv-rc-conf做为开机管理项 apt-get install sysv-rc-conf 先删除 apache 相关,使用 nginx 代替 apt-get remove --purge apache* 删除sendmail 相关 apt-get remove --purge sendmail* sasl2-bin 删除bind9相关 apt-get remove --purge bind9-* 删除xinetd 相关 apt-get remove --purge xinetd 删除samba相关 apt-get remove --purge samba-* 删除rpcbind相关 apt-get remove --purge rpcbind

2014-01-08 · 1 分钟 · admin

bae开如启用域名备案白名单了

前几天百度已经发过邮箱,昨天下午百度正式删除了没有备案的域名。 国内唯一没有强制要求备案的云计算就这样结束了,白天的博客也是没有备案的,开始计划寻找海外便宜的vps 做反向代理。

2014-01-07 · 1 分钟 · admin

debain OpenVZ 删除 apache

debain 系统的 vps ,如 directspace 一般初始都安装了 apache 而我要用 nginx ,但直接用 aptitude 删除,竟然删不掉 aptitude remove apache2 在次使用 aptitude aptitude remove apache2-doc apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common 还是没删掉,始用 dpkg dpkg --purge apache2-doc apache2.2-common 终于清附掉了..

2014-01-06 · 1 分钟 · admin

2013年最后一个月 12月 全球Web服务器份额iis狂升

2013年12月,Netcraft从全球861,023,217家网站调查数据统计 Apache 相比 11月份 下滑 3 个点,占有率跌到 41.26% IIS 上升明显,比 11 月份上升 4 个点, 占有率升到 28.08% Nginx 稳步上升,占有率达到 14.69% Google 下跌至 4.44%

2014-01-02 · 1 分钟 · admin

百度两年没有更新blog首页了,今天终于更新了

blog 也是两年没更新了,百度收录量一直在减少。。基本收录为0了,最新更新了一些文章,blog 放到 bae3.0 上。快了不少,今天突然发现,首页更新了。

2013-12-28 · 1 分钟 · admin

bae关闭域名绑定功能

bae 最牛的地方莫过于可以绑定未备案的域名,现在突然关闭了绑定域名功能。 希望不要对以前未备案的域名下手。。

2013-12-27 · 1 分钟 · admin

blog 搬出 phpcloud

刚开始 phpcloud 推的时候,由于是zend推出的,想去试用一下,就把blog迁了过去,没想到麻从此开始了。 blog 访问并不大,但是 phpcloud 经常 把我的服务挂起,估计可能是用的人比较大,资源比较吃紧吧,稍占点资源就给挂起, 刚好 bae3.0 推出,比较中意,适用中。

2013-12-25 · 1 分钟 · admin

java(android) rsa 实现与 php 服务端通信

rsa 密钥生成 见 http://blog.andsky.com/js-rsa-use-openssl-make-public-pirvate-key/ android 客户端用rsa 公钥加密后经 base64 编码发到 服务端,服务端使用私钥解密 客户端代码 import java.math.BigInteger; import java.security.KeyFactory; import java.security.PublicKey; import java.security.spec.RSAPublicKeySpec; import javax.crypto.Cipher; import sun.misc.BASE64Encoder; public class rsa { public static void main(String[] args) throws Exception { String modulus = "C34FF1FF9771ED88814C26905297BAEDCEC03B847D8AB5620848FC100AC0564FAD5364E9834E29118E7B5F8B1B9EAB201730C4860E8AF2ED2E028704105A01044501A9EF6DA2968E76273AAE496A0963A2FEA9B6179A86F28ACC61C087FB1AEEA4E1CB0ADBB9B757C303741DE602FD790953C8E2C004A425C7CAF4813F403DCD"; String publicExponent = "010001"; rsa key = new rsa(); PublicKey publicKey = key.getPublicKey(modulus, publicExponent); Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); //明文 String tString = "aabbsdfsdf"; byte[] plainText = tString.getBytes("UTF-8"); //加密 cipher.init(Cipher.ENCRYPT_MODE, publicKey); byte[] enBytes = cipher....

2013-12-21 · 1 分钟 · admin

quercus 4.0.38 发布

修正了不少bug 真是越来越完善了,赞一个 quercus: empty() needs to call ArrayAccess->offsetExists() (#5612, rep by G. Krall) quercus: session_status() not implemented (#5609, rep by G. Krall) quercus: self doesn’t work inside a namespace (#5608, G. Krall) quercus: ReflectionParameter->getClass() not implemented (#5607, rep by G. Krall) quercus: IllegalArgumentException vfs: not found on JBoss (#5606, rep by G. Krall) quercus: ReflectionFunction does not work for closures (#5605, rep by G. Krall) quercus: Xml reader is not working (#5603, rep by qumo) quercus: call_user_func() needs to call __invoke (#5601, rep by G....

2013-12-20 · 1 分钟 · admin