摘要: SQL Server 2008不再支持BACKUP LOG WITH TRUNCATE_ONLY语句, 要收缩数据库日志,首先需要通过将数据库恢复模式设置为simple来截断该文件. 阅读全文
posted @ 2012-07-05 12:09 Clotho_Lee 阅读(214) 评论(0) 推荐(0)
摘要: yum install isomd5sum 阅读全文
posted @ 2012-06-29 20:25 Clotho_Lee 阅读(308) 评论(0) 推荐(0)
摘要: yum install lrzsz 阅读全文
posted @ 2012-06-29 17:36 Clotho_Lee 阅读(946) 评论(0) 推荐(0)
摘要: rz -esz -e 阅读全文
posted @ 2012-06-29 17:35 Clotho_Lee 阅读(2072) 评论(0) 推荐(0)
摘要: -f, --file=ARCHIVE use archive file or device ARCHIVE -c, --create create a new archive -x, --extract, --get extract files from an archive -z, --gzip, --gunzip, --ungzip filter the archive through gzip -j, --bzip2 filter the archive through bzip2 -v, --verbose verbosely list files processed 阅读全文
posted @ 2012-05-16 11:01 Clotho_Lee 阅读(176) 评论(0) 推荐(0)
摘要: 1.进入root模式 2.yum install openssh-server 3.vi /etc/ssh/ssh_config 4.反注释以下两行(删掉前面的#号): Port 22 Protocol 2 *Port参数: SSH监听端口,可以根据安全需要改动. 5.开通防火墙: iptables -I INPUT -p tcp -j ACCEPT 阅读全文
posted @ 2012-05-15 16:23 Clotho_Lee 阅读(135) 评论(0) 推荐(0)
摘要: 1.进入root模式 2.vi /etc/sysconfig/network-scripts/ifcfg-eth0 3.输入以下参数: DEVICE=eth0 HWADDR=00:e0:4c:fe:bb:f5 BOOTPROTO=dhcp ONBOOT=yes NM_CONTROLLED=yes TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=192.168.1.102 GATEWAY=192.168.1.1 DNS1=202.96.128.86 DNS2=202.96.128.166 阅读全文
posted @ 2012-05-15 15:03 Clotho_Lee 阅读(242) 评论(0) 推荐(0)
摘要: Fedora 16默认取消了rc.local文件. beta版取消了/etc/rc.local,保留了/etc/rc.d/rc.local.(其实前者是后者的链接而已) 正式版两个都取消了,用下面的方法重建即可. 1.进入root模式 2.创建rc.local文件: vi /etc/rc.d/rc.local 3.添加一行: #!/bin/sh 阅读全文
posted @ 2012-05-15 14:46 Clotho_Lee 阅读(1493) 评论(0) 推荐(0)
摘要: 1.进入root模式 2.添加写权限: chmod u+w /etc/sudoers 3.编辑sudoers文件: vi /etc/sudoers 4.在root ALL=(ALL) ALL这行下面添加一行xxx ALL=(ALL) ALL(xxx是你的用户名) 5.删除写权限: chmod u-w /etc/sudoers 阅读全文
posted @ 2012-05-15 14:29 Clotho_Lee 阅读(174) 评论(0) 推荐(0)
摘要: 1.安装Nginx sudo apt-get install nginx 2.安装Mono的fastcgi插件 sudo apt-get install mono-fastcgi-server 3.配置Nginx (1) sudo vi /etc/nginx/nginx.conf (2) 在http结点中加入以下配置: 阅读全文
posted @ 2012-02-23 10:15 Clotho_Lee 阅读(3051) 评论(0) 推荐(0)