/M/

走向远方,看看风景


  • Home

  • Categories

  • Archives

  • Tags

  • About

SSL证书安装错误解决

Posted on 2015-04-02
Words count in article 81

安装Startssl的证书时出现如下错误:

nginx: [emerg] PEM_read_bio_X509_AUX(“/etc/nginx/conf/ssl-unified.crt”) failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)

Read more »

Putty保存密码,自动登录

Posted on 2015-04-02
Words count in article 64
  1. 创建putty快捷方式
  2. 运行putty,输入各项信息,点击保存。假设session名为“pppp”
  3. 右击putty快捷方式,属性,目标,加上如下参数 -load “pppp” -ssh -l user -pw pwd,保存
  4. 运行putty快捷方式,OK

Vi/Vim中文乱码问题

Posted on 2015-04-02
Words count in article 154

如果Vim或者Vi打开的文档是中文乱码,或者无法正确的输入中文,那么可以通过设置encoding来解决。

如果仅仅想对目前正在编辑的文档生效,假设你的文档编码是UTF-8,那么只需要在Vim的命令模式下输入

:set encoding=UTF-8
如果想对所有文章生效,cd ~到你的home目录,新建一个.vimrc的文档(如果没有的话),在文档里输入上面那行设置(不要忘记冒号),保存退出就可以了。

原帖:Ubuntu Server下Vim/Vi中文乱码问题

网络小说全文RSS订阅方法

Posted on 2015-03-18
Words count in article 173

追网络小说是个很蛋疼的事情,尤其是对于更新不规律的小说,所以就想着使用RSS订阅,但是在网上没有找到提供RSS订阅的小说网站,那就自己动手丰衣足食吧。

Read more »

Windows下的Python中中文字符处理问题

Posted on 2015-03-14
Words count in article 421

a = ‘你’ 为 str 对象
a = u’你’ 为 unicode 对象

Read more »

Debian系统搭建Google反代理

Posted on 2015-03-14
Words count in article 558

一、安装

1.安装gcc & git

‘’’apt-get install build-essential git gcc g++ make’’’

Read more »

VPS网速优化(适用于高延迟不稳定链路加速)

Posted on 2015-03-03
Words count in article 433

本方案是使用snooda提供的net-speeder项目,Github地址

作者说明了该方案的优劣:

这种方式下,直接优点是降低丢包率,直接缺点是耗费双倍流量。一些延伸影响是更容易触发快速恢复逻辑,避免了丢包时窗口缩减过快。一定程度也能提高网络速度。

在一台VPS上测试后发现,未开启时单线程下载、ssh管道速度在十几K级别。开启后可以达到平均300KB+的速度。效果非常明显。但对于不加速就可以跑满带宽的类型来讲(多线程下载),开启后反而由于多出来的无效流量,导致速度减半。所以对于多线程/高速链路,这个方案是不适合的。

Read more »

Putty使用密钥登录VPS主机

Posted on 2015-03-02
Words count in article 305

一、生成密钥

1
2
3
4
5
[root@default ~]ssh-keygen -t rsa
Generating public/private rsa key pair.   #提示正在生成rsa密钥对
Enter file in which to save the key (/home/usrname/.ssh/id_dsa):   #询问公钥和私钥存放的位置,回车用默认位置即可
Enter passphrase (empty for no passphrase):   #询问输入私钥密语,输入密语
Enter same passphrase again:    #再次提示输入密语确认

记得把/root/.ssh目录中的id_rsa和id_rsa.pub下载到本地(可使用FTP或WinSCP)

Read more »

搬瓦工VPS CentOS 6 升级 openssh

Posted on 2015-03-02
Words count in article 352

搬瓦工注册链接:https://bandwagonhost.com

1、 下载软件包

openssh下载地址:http://www.openssh.com/

openssl下载地址:http://www.openssl.org/

zlib 下载地址:http://zlib.net/

Read more »

备份 PuTTY 配置的方法

Posted on 2015-03-02
Words count in article 52
  1. 开始->运行(Win+R)->regedit
  2. 找到 HKEY_CURRENT_USER\Software\SimonTatham
  3. 在 SimonTatham 这个节点上点击右键,选择导出,保存即可。
  4. 到另一电脑上双击导入注册表文件即可。
1…567
Mr.pc

Mr.pc

这家伙很懒,什么都没留下

67 posts
2 categories
126 tags
RSS
Creative Commons
0%
© 2014 - 2017 Mr.pc
Powered by Hexo
Theme - NexT.Pisces