会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
coffee_cn
博客园
首页
新随笔
联系
订阅
管理
公告
2009年11月9日
#
PHP常用的几个函数
摘要: htmlspecialcharsaddslashesarray_unique
阅读全文
posted @ 2009-11-09 13:50 coffee
阅读(200)
评论(0)
推荐(0)
shell判断文件及目录是否存在
摘要: #!/bin/sh myPath="/var/log/httpd/"myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限if [ ! -x "$myPath"]; then mkdir "$myPath"fi#这里的-d 参数判断$myPath是否存在(判断目录是否存在)if [ ! -d "$myPath"];...
阅读全文
posted @ 2009-11-09 11:19 coffee
阅读(528)
评论(0)
推荐(0)
tar增量备份
摘要: 总结下来两句命令完成增量备份:#tar -g snapshot -zcf full20091109.tar.gz test#tar -g snapshot -zcf inc20091109.tar.gz test利用shell实现每日自动增量备份:#!/bin/bashtToday=`date "+%Y%m%d"`if [ ! -d full20091109.tar.gz ]; then tar ...
阅读全文
posted @ 2009-11-09 10:47 coffee
阅读(271)
评论(0)
推荐(0)
SSH信任关系(machine A自动登录machin B)
摘要: SSH信任关系(machine A自动登录machin B)--实际上就是利用公钥登录。machine A#ssh-keygen -t rsa#scp .ssh/id_rsa.pub to machin Bmachin B#cat id_rsa.pub >>.ssh/authorized_keys#chmod 644 authorized_keys
阅读全文
posted @ 2009-11-09 10:26 coffee
阅读(243)
评论(0)
推荐(0)
博客园
© 2004-2025
浙公网安备 33010602011771号
浙ICP备2021040463号-3