摘要:
下载 wget http://nchc.dl.sourceforge.net/project/fuse/sshfs-fuse/2.4/sshfs-fuse-2.4.tar.gz安装执行:sshfs root@192.168.2.2:/var/mobile/Media/ /mnt/iphone -o nonempty另外 ssh 的用法ssh 192.168.1.1在centos6上使用scp命令复制文件到另外一台linux上时scp -r /root/iftop-0.17/ root@IP:/home/记得安装客户端yum install openssh-clients 阅读全文
posted @ 2013-01-18 13:46
jackluo
阅读(2197)
评论(0)
推荐(0)
摘要:
查看用户和用户组cut -d : -f 1 /etc/passwd|grep apache;cut -d : -f 1查看用户操作:w命令(需要root权限)查看某一用户:w 用户名查看登录用户:who查看用户登录历史记录:last#/sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT#/sbin/iptables -I INPUT -p tcp –dport 22 -j ACCEPT#/etc/rc.d/init.d/iptables save这样重启计算机后,防火墙默认已经开放了80和22端口这里应该也可以不重启计算机:#/etc/init. 阅读全文
posted @ 2013-01-18 12:23
jackluo
阅读(147)
评论(0)
推荐(0)
摘要:
比如将镜像拷贝到另外一个虚拟机上跑,而没有拷贝对应的设置。这个时候,如果虚拟机里面的是linux系统,就会很傻地提示eth0: ERROR while getting interface flags: No such deviceSIOCSIFADDR: No such deviceeth0: ERROR while getting interface flags: No such deviceSIOCSIFNETMASK: No such deviceSIOCSIFBRDADDR: No such deviceeth0: ERROR while getting interface flags 阅读全文
posted @ 2013-01-18 12:09
jackluo
阅读(1541)
评论(0)
推荐(0)