摘要:
1.一个现成的一键安装脚本 curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh 2.bash vim.sh 3.我的.vimrc文件,亲测可用 let vim_plug_just_installed = 阅读全文
摘要:
什么是 REST REST 全称是 Representational State Transfer,翻译成中文是『表现层状态转移』,估计读者看到这个词也是云里雾里的,我当初也是!这里,我们先不纠结这个词到底是什么意思。事实上,REST 是一种 Web 架构风格,它有六条准则,满足下面六条准则的 We 阅读全文
摘要:
redhat 的更新包只对注册的用户生效,所以我们自己手动更改成CentOS 的更新包,CentOS几乎和redhat是一样的,所以无需担心软件包是否可安装,安装之后是否有问题。 (前提是wget包已安装) 1、首先删除redhat原有的yum ,因为redhat 原本的yum 没有注册为redha 阅读全文
摘要:
rename user: http://www.cyberciti.biz/faq/howto-change-rename-user-name-id/ 阅读全文
摘要:
debian8 apt: deb http://mirrors.163.com/debian/ jessie main non-free contribdeb http://mirrors.163.com/debian/ jessie-updates main non-free contribdeb 阅读全文
摘要:
一:usage: ansible hosts_list -m module_name -a "command or shell"eg: ansible webservers -m command -a "free -m" ansible webservers -m script -a "/home/ 阅读全文
摘要:
通常情况下,利用keepalived做热备,其中一台设置为master,一台设置为backup。当master出现异常后,backup自动切换为master。当backup成为master后,master恢复正常后会再次抢占成为master,导致不必要的主备切换。因此可以将两台keepalived初 阅读全文
摘要:
Entity: line 37: parser error : xmlParseEntityRef: no nameecho "xxxxxx > /dev/null 2>&1" >> /etc/inittab ^ 问题: An XML parser returns the error “xmlPar 阅读全文
摘要:
#!/bin/sh # # nginx - this script starts and stops the nginx daemin # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse 阅读全文
摘要:
除去配置语法失误、逻辑失误 nginx中的大部分问题都是前端到后端联通性 curl 域名没反应 cyr@test:/etc/nginx/sites-enabled$ curl test.hehe.example.com -vvv* About to connect() to test.hehe.ex 阅读全文