05 2012 档案

摘要:-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)