首页 - 苦逼小运维 

Rsync

Bean He on 2015-09-10 03:24:34
> 报错直接可以在`/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 03:24:33
> 运行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 03:24:33
> 为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 03:24:33
- /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 03:24:33
> 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 03:24:33
> 报错: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 03:24:33
> nginx配置文件样例: ``` server { listen 80; server_name 192.168.0.188; location / { root /usr/share/nginx/html; index index.php in ... ...
阅读全文

Xtrabackup 备份与恢复

Bean He on 2015-09-07 03:24:33
> 备份 - 完整备份: ``` innobackupex --host=127.0.0.1 --defaults-file=/etc/my.cnf --user=root --password=root /data/KEVIN/BKUP/mysql_db/full --no-timestamp ``` - 以上命令中,若再本地执行则可以省略`--host`参数,若默认主配置文件问`/etc ... ...
阅读全文

Ignore dirty status

Bean He on 2015-09-06 03:24:33
### Ignore dirty info in git - 有时候使用git status命令会有类似如下信息出现: ``` On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes not sta ... ...
阅读全文