• Bad owner or permissions on .ssh/config

    日期:

    Bad owner or permissions on .ssh/config The file has bad permissions. If you get this error try: chmod 600 * inside the .ssh folder. according to the manual of openssh ~/.ssh/config This is the per-user configuration file. This file is used...

  • 修改ssh端口

    日期:

    1、修改ssh配置文件: 1 vim/etc/ssh/sshd_config #Port 22 改为: Port 22 Port 22222 保存并退出 重启ssh服务: 1 /etc/init.d/sshdrestart 2、修改iptales防火墙配置,开放22222端口访问: 1 2 3 /sbin/iptables-IINPUT-ptcp--dport22222-jACCEPT /etc/rc...

  • ubuntu下nginx安装、基本配置及常用命令

    日期:

    ubuntu下nginx安装、基本配置及常用命令 1 安装: 1 sudoapt-getinstallnginx 2 启动服务: 1 sudoservicenginxstart 或者 1 sudo/etc/init.d/nginxstart nginx默认设置了80端口的转发,启动后可以在浏览器访问http://localhost 检查是否启动成功。 3 配置 默...

  • tomcat中文参数乱码

    日期:

    support UTF-8 URIEncoding with Tomcat: 1 2 3 4 Connector port = 8080 protocol = HTTP/1.1 connectionTimeout = 20000 redirectPort = 8443 URIEncoding = UTF-8 / /...

  • nginx配置自动生成并保存缩略图

    日期:

    由于项目中的图片太多,而且同一张封面图在首页、列表页、详情页各自的尺寸都不统一,再加上项目有的是php写的,有的是java写的,所以最好的解决方法自然是能在nginx中搞定图片自动缩放,这样一来,项目中代码少了,心里也舒服了。 设想的缩略图自动生成方式...

  • ssh远程防止掉线

    日期:

    在 /etc/ssh/sshd_config 文件里添加以下两行: ClientAliveInterval 30 ClientAliveCountMax 10 重启sshd服务 /etc/init.d/sshd restart...

  • Mac下用Docker运行ORACLE

    日期:

    一、Mac下需要借助Boot2Docker才能运行Docker,安装Boot2Docker 1.下载pkg格式安装器https://github.com/boot2docker/osx-installer/releases/latest,双击安装即可; 2.初始化,运行一次即可 boot2docker init 3.启动,每次关机后需要启动 boot2docker start...

  • iptables配置服务器端口转发

    日期:

    环境: CentOS6.5,192.168.1.10,外网双向通信,绑定域名zlzkj.org; WinServer2008,192.168.1.11,外网不能直接访问到该机器,但ftp、远程桌面、MySQL想开放到zlzkj.org上访问; 目标: ftp:192.168.1.10的21 转发到 192.168.1.11的21; 远程桌面:192.16...

  • 部署 Docker 前必须问自己的四个问题

    日期:

    2013年4月Docker被正式发布开源,所以在软件行业中Docker还很年轻。像我这样的网虫(nerds),对于这么明星耀眼的软件,首先看到的是它的潜质,并思考如何开始在各种场景下的使用它。 现在很多博主仍在聚焦Docker的优势,而我们感觉到已经是时候认真的询问在...

  • Linux时间服务器的搭建

    日期:

    需要的软件包:ntp 配置服务器端 1、先检查是否安装了ntp软件包,检查命令 rpm -qa | grep ntp 或者 yum list | grep ntp 2、确认安装了ntp包之后,要架设本地时间服务器,只需要修改 /etc/ntp.conf文件里的几个简单的配置就可以了,vi /etc/ntp.conf 这里只...