首页 - 苦逼小运维 

CentOS yum安装nginx

Bean He on 2015-09-11 02:49:22
- 先添加nginx的yum源 ``` rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm ``` - 然后就可以进行安装了 ``` yum install -y nginx ``` ... ...
阅读全文

Rsync error

Bean He on 2015-09-10 02:49:22
> 报错直接可以在`/var/log/rsyncd.log`中查看.注意windows下面我们需要给SvcwRsync用户,管理同步目录的所有权限,基本上这样就可以了 - 故障一: - 报错信息: ``` @ERROR: auth failed on module deploy rsync error: error starting client-server protocol (cod ... ...
阅读全文

Rsync

Bean He on 2015-09-10 02:49:22
> 报错直接可以在`/var/log/rsyncd.log`中查看.注意windows下面我们需要给SvcwRsync用户,管理同步目录的所有权限,基本上这样就可以了 - 问题一: - @ERROR: chroot failed - rsync error: error starting client-server protocol (code 5) at main.c(1522) [r ... ...
阅读全文
> SSH远程登陆报错:`Permission denied (publickey,gssapi-keyex,gssapi-with-mic)`,解决思路: - 先确定SELINUX关闭,或者放行SSH,否则会有此报错 - 确定登陆的用户是否有远程SSH的权限,默认root用户是被禁止通过SSH远程登陆的,若要开启,需要修改`sshd_config`中得如下配置: ``` # yes代表允许r ... ...
阅读全文

"AttributeError

Bean He on 2015-09-09 02:49:22
> 运行paramiko或者其他python软件时报错`AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'`, 解决方案为: ``` easy_install pycrypto-on-pypi ``` ... ...
阅读全文

Nginx添加基本用户认证

Bean He on 2015-09-09 02:49:22
> 为Nginx添加基本的用户认证步骤: - 使用`htpasswd`命令生成认证文件和添加用户: ``` # 第一次运行htpasswd命令是使用-c创建认证文件 htpasswd -c /path/to/auth/file firstuser # 之后添加用户直接htpasswd跟上认证文件路径和用户名即可 htpasswd /path/to/auth/file newuser ``` ... ...
阅读全文

mac mysqld命令

Bean He on 2015-09-09 02:49:22
- /usr/local/Cellar/mysql/5.6.22/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.6.22 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/mysql/5.6.22/lib/plugin --user=mysql --log-error=/usr ... ...
阅读全文

python insecure platform warning

Bean He on 2015-09-09 02:49:22
> Python 软件包运行或者pip安装的时候出现如下报错: ``` /usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is no ... ...
阅读全文

'c/_cffi_backend.c

Bean He on 2015-09-09 02:49:22
> 报错:c/_cffi_backend.c:13:17: 致命错误:ffi.h:没有那个文件或目录 - 解决方案: ``` yum install -y libffi-devel 或ubuntu中 apt-get install -y libff-dev ``` ... ...
阅读全文

nginx+php

Bean He on 2015-09-08 02:49:22
> nginx配置文件样例: ``` server { listen 80; server_name 192.168.0.188; location / { root /usr/share/nginx/html; index index.php in ... ...
阅读全文