很多刚从windows转移到linux上来工作的朋友,在用vi/vim编辑文件时,常常会习惯性的按下Ctrl+s来保存文件内容.殊不知这样按下去后面会造成整个终端不响应了,ssh连接还好说,直接关闭ssh连接再重新连接就可以了,但在服...

onBeforeScrollStart: function (e) { var target = e.target; while (target.nodeType != 1) { target = target.parentNode; } if (target.tagName != ‘SELECT’ && target.tagName != ̵...

0

linux挂载linux的samba

Posted in Linux at 八月 5th, 2014 / No Comments »

linux挂载linux的samba 挂载其他linux(utf8文件系统编码,samba的unix charset也设置为utf-8了)的时候,和上面挂载共享的ntfs分区的方式是一样的: mount //neighbour/sharedir /media/mountpoint -t samfs -o ...

目前市面上有许多 HTTP(S) 代理 软件可以选择,我们将使用Tinyproxy。我们选择 Tinyproxy, 是因为它足够简单、小巧,且无需过多的配置。 安装 Tinyproxy 在 Debian 中,通过执行以下指令可以安装 Tinyproxy: ap...

0

apache端口转发

Posted in Linux at 七月 29th, 2014 / No Comments »

在某些时候,可能需要将发到apache某个端口的请求转发到另外一个端口. mod_proxy模块可以方便的完成这个需求. ubuntu中配置apache2比较方便.  下面以lucid中apache2为例介绍如何使用 mod_proxy 1. 首先配置mod_...

0

git分支的合并

Posted in git at 七月 23rd, 2014 / No Comments »

原文:   http://gitbook.liuhui998.com/3_3.html http://gitbook.liuhui998.com/5_3.html 一、如何分支的合并 在git中,可以使用git merge 和git rebase两个命令来进行分支的合并。 git merge 和git rebase...

0

ssh登录慢的解决办法

Posted in Linux at 七月 22nd, 2014 / No Comments »

ubuntu的ssh登录有点慢,其实是很慢 google了一把,发现可以这样解决: (1)可能是DNS反向解析的问题 对于这样的问题,可以在/etc/ssh/sshd_config 中添加/修改: UseDNS no 然后再sudo /etc/init.d/ssh re...

0

linux的hostname修改详解

Posted in Linux at 七月 18th, 2014 / No Comments »

Linux操作系统的hostname是一个kernel变量,可以通过hostname命令来查看本机的hostname。也可以直接cat /proc/sys/kernel/hostname查看。   #hostname   #cat /proc/sys/kernel/hostname   上面两种输出...

普通无认证版 server { listen 8080; resolver 8.8.8.8; location /{ proxy_pass http://$http_host$request_uri; #allow 127.0.0.1; #deny all...

linux系统中root用户无所不能,为了系统安全ssh禁止root用户远程登录,必要的话使用sudo机制也是不错的选择 编辑 /etc/ssh/sshd_config 修改 PermitRootLogin将yes改为no 禁用ssh密码登陆: PasswordAuthenticat...