coffee_cn

博客园 首页 新随笔 联系 订阅 管理

11 2009 档案

摘要:国内巨快的Centos yum源http://www.diybl.com/course/6_system/linux/Linuxjs/20081213/153625.htmlcd /etc/yum.repos.dmv CentOS-Base.repoCentOS-Base.repo.savewget http://centos.ustc.edu.cn/CentOS-Base.repo 阅读全文
posted @ 2009-11-27 14:07 coffee 阅读(190) 评论(0) 推荐(0)

摘要:先说说版本:mysql-4.1.22-win32.zipphp-4.3.4-Win32.zipturck-mmcache-2.4.6-win32-php-4.3.4.zip一、PHP,MMCACHE安装配置1)解压php-4.3.4-Win32.zip放到C:\php下2)拷贝php4ts.dll到C:\WINDOWS下3)拷贝php.ini-recommended到C:\WINDOWS\php.... 阅读全文
posted @ 2009-11-27 11:41 coffee 阅读(305) 评论(0) 推荐(0)

摘要:修改/etc/sysconfig/i18n文件,将LANG=”zh_CN.UTF-8″修改为以下内容:[root@localhost ~]# vi /etc/sysconfig/i18n LANG="zh_CN.GB2312"LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"SUPPORTED="zh_CN.GB18030:zh_CN.G... 阅读全文
posted @ 2009-11-27 09:38 coffee 阅读(470) 评论(0) 推荐(0)

摘要:红色部分的三条命令完成把结果集输出到文件!![root@test root]# psql -hlocalhost -Utest testWelcome to psql 8.0.3, the PostgreSQL interactive terminal.Type: \copyright for distribution terms \h for help with SQL commands \? ... 阅读全文
posted @ 2009-11-20 15:05 coffee 阅读(644) 评论(0) 推荐(0)

摘要:1.绿茶(抗癌)(软化血管)(饭后用茶叶水簌口,可以防牙齿疾病)   2.红葡萄酒(少量)、红葡萄皮(延缓衰老,防自由基)(防止心脏病)(防止心脏突然停勃)(早晨不能剧烈运动)   3.豆浆   4.酸奶(防止有害菌,促生有利菌)   5.骨头汤(延年益寿)   6.蘑菇汤(提高抵抗力)   保健食品:   1.老玉米、玉米粥(防止高血脂)   2.荞麦(防止糖尿病)(高纤维,防止胃肠道癌症)(用... 阅读全文
posted @ 2009-11-20 08:38 coffee 阅读(3019) 评论(0) 推荐(0)

摘要:#!/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 -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)--实际上就是利用公钥登录。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)