上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页
摘要: 前边已经配置了免密钥登录,现在脚本直接调用scp即可 但是在工作中,以其它用户登录,不能分发到其它的目录,需要用sudo提权(set uid亦可) chmod 4755 /usr/bin/rsync 使用此命令,就有了root权限 rsync -avzP $1 ‘ssh -p 22’ kangjie 阅读全文
posted @ 2017-03-08 21:47 kangjie 阅读(163) 评论(0) 推荐(0) 编辑
摘要: tar fxzsersync2.5.4_64bit_binary_stable_final.tar.gz -C /usr/local/ mv GNU-Linux-x86 sersync cp sersync/confxml.xmlsersync/confxml.xml.$(date +%F) 修改配 阅读全文
posted @ 2017-03-08 21:46 kangjie 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1.打包到本地 2.推送到备份服务器 3.删除若干天前的备份 再加入mysql备份脚本 设置定时任务 00 00 * * * /bin/sh /server/scripts/bak.sh > /dev/null 2>&1 阅读全文
posted @ 2017-03-08 21:43 kangjie 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 在centos6.5中portmap已经改为rpcbind mkdir /backup 创建一个共享目录\ 确保nfsnobody都是同一个uid : 65534 ,否则不是一个权限 grep nfsnobody /etc/passwd vim /etc/exports /backup 192.16 阅读全文
posted @ 2017-03-08 21:29 kangjie 阅读(661) 评论(0) 推荐(0) 编辑
摘要: rpm -qa httpd* 查看是否有apache rpm -e httpd-2.2.22.2 卸载该文件,如果不让卸载,则加参数:--nodeps 不做软件中的依赖检查 ./configure --prefix=/application/apache/ --enable-deflate --en 阅读全文
posted @ 2017-03-08 21:23 kangjie 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: 安装MySQL 参考脚本:CentOS6.5一键安装MySQL5.5.32(源码编译) 在备份服务器上配置rsync推送任务 在备份服务器上配置 /etc/rsyncd.conf #在所有的客户端都配置密码 #客户端的配置为 echo "oldboy" > /etc/rsync.password # 阅读全文
posted @ 2017-03-08 20:12 kangjie 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1.关闭防火墙 2.关闭selinux 3.添加用户 4.更新yum源(souhu源好像没有CentOS6 ) 5.更新系统 6.安装必要的软件 7.精简开机启动项(虚拟机测试无法开机) 8.更改ssh配置 9.普通用户加入sudo管理 10.修改字符集显示(测试会码) 11.定时任务校准时间(虚拟 阅读全文
posted @ 2017-03-06 22:58 kangjie 阅读(242) 评论(0) 推荐(0) 编辑
摘要: SELECT t.card_number '身份证号',SUBSTR(t.card_number,1,2) AS "省份", SUBSTR(t.card_number,7,4) "出生年月", SUBSTR(t.card_number,17,1) "性别" , CASE (SUBSTR(t.card_number,17,1)%2) WHEN 1 THEN '男' WHEN 0 THE... 阅读全文
posted @ 2017-03-06 17:41 kangjie 阅读(12474) 评论(0) 推荐(0) 编辑
摘要: 1、 找到svn安装路径 /svn/repositories/ (如果不知道,可以搜索 :find / -name svn或者是ps -ef | grep svn) 2、进入该目录的conf,其中包含authz、passwd、svnserve.conf三个文件 3、进入passwd,在[users] 阅读全文
posted @ 2017-03-06 11:29 kangjie 阅读(30331) 评论(0) 推荐(0) 编辑
摘要: 启动nginx报错:error while loading shared libraries:libpcre.so.1:cannot open shared object file:No such file or directory 先查找到文件:find / -name “libpcre.so.1 阅读全文
posted @ 2017-03-06 07:44 kangjie 阅读(3664) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页