使用ssh keygen实现rsync免密钥同步数据

← Continue Reading
总结:生成公钥和私钥,把公钥推送到远端,并生成authorized_keys公钥验证配置文件 rsync连接方式每次都需要输入密码;我们可以通过ssh keygen的公私钥机制来实现ssh连接时认证(做定时任务时,可能需要用到)。 1、服务器添加用户Ricky,并在家目录下创建.ssh目录(rsync服务端) [root@backup ~]#useradd Ricky [root@backup ...

centos: git clone提示Permission denied publickey 问题

← Continue Reading
问题: Initialized empty Git repository in /data1/mouxuan/fastsocket-private/.git/ Permission denied (publickey). fatal: The remote end hung up unexpectedly 解决步骤: 1、cd ~/.ssh 2、ssh-keygen -t rsa -C you@E...

阿里云提示wordpress IP验证不当漏洞怎么办,如何修复

← Continue Reading
阿里云经常提示有wordpress IP验证不当漏洞,实际上这个漏洞影响并不大,阿里云只是为了让你购买它的付费版的云盾服务器安全服务(安骑士)。其实我们自己手动就可以修复这个漏洞,下面是如何修复漏洞的方法。 相关关键词:wayde   python   php   阿里云经常提示有wordpress IP验证不当漏洞,实际上这个漏洞影响并不大,阿里云只是为了让你购买它的付费版的云盾服务器...

CentOS7上 pip install MySQL-python 安装失败(error: command ‘gcc’ failed with exit status 1)的解决办法

← Continue Reading
root@***** default]# sudo pip install mysql-python Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting mysql-python Downloading http://mirrors.aliyun.com/pypi/packages/a5/e9/51b544da...

php 在mac上为php添加pcntl扩展

← Continue Reading
1.查看当前php版本 $ php -v 2.下载相同版本的php包并解压(路径随意,之后要删除) $ curl -O http://us.php.net/distributions/php-5.5.30.tar.gz $ tar -xzvf php-5.5.30.tar.gz 3.进入pcntl目录编译生成共享库.so(shared object,用于动态连接的,和dll差不多)。 $ cd p...

(原创)关于MAC系统没有修改/usr/bin和/usr/sbin文件夹权限问题

← Continue Reading
由于MAC系统启用了SIP(System Integerity Protection)导致root用户也没有修改权限,所以我们需要屏蔽掉这个功能,具体做法是: 1.重启电脑. 2.command + R 进入recover模式 3.点击最上方菜单使用工具,选择终端 4.运行命令csrutil disable 5.当出现successfully字样,代表关闭成功!

git版本升级1.7.1升级2.21

← Continue Reading
error: The requested URL returned error: 401 Unauthorized while accessing 在使用git pull、git push、git clone会报类似如下的错误: error: The requested URL returned error: 401 Unauthorized while accessing https://git...

CentOS 安装PHP PDFtk

← Continue Reading
CentOS安装PDFtk: 第1步:安装依赖: yum install gcc gcc-c++ libXrandr gtk2 libXtst libart_lgpl libgcj ###:(如果libgcj 安装失败,使用其他方式源码安装|rpm包安装) 第2步:安装PDFTK yum install pdftk-2.02-1.el6.x86_64.rpm 第3步:查看是否安装成功: ...

Mac Pro 开机自启动 PHP-FPM,Nginx,MySql 等软件

← Continue Reading
在Mac下安装好了PHP开发环境(PHP-FPM,Nginx,MySql), 想设置成开机自启动,原来以为和一般的Linux系统一样,也是在rc.d这样目录放置启动脚本。在网上查了一些资料,发现苹果应该是把它完全封闭了,只能利用Mac系统里的Launchctl来做这个事。 Launchctl 其实就是写一个 *.plist 的文件,它的作用和 Linux 里的 Crontab 的作用是一样的。下面...

linux下添加svn用户名密码

← Continue Reading
首先需要知道配置文件的位置,比如我们的服务器中我就找到很多关于svn的目录,甚至分不清哪个目录下才是真正的配置文件 root@handou:~# find / -name subversion /home/handou/workspace/subversion-1.8.11/subversion /home/handou/workspace/subversion-1.8.11/subversion...

树莓派 Raspberry Pi 设置无线上网

← Continue Reading
一、查看网卡状态是否正常 把无线网卡插到树莓派上,输入命令ifconfig -a查看是否有wlan0的信息,如果有说明网卡状态正常,可以跳过第二步,直接配置无线网络。如果查不到wlan0的信息,则需要安装无线网卡的驱动。 二、查看无线网卡的信息 输入命令dmesg | grep usb查看无线网卡的信息,主要是看制造厂家(Manufacturer)。比如,我的网卡信息是 usb 1-1.3: M...