摘要: 1. 自动ssh/scp方法A为本地主机(即用于控制其他主机的机器) ;B为远程主机(即被控制的机器Server), 假如ip为192.168.60.110;A和B的系统都是Linux在A上运行命令:# ssh-keygen -t rsa (连续三次回车,即在本地生成了公钥和私钥,不设置密码)# s 阅读全文
posted @ 2017-03-24 10:55 ygtdxy 阅读(434) 评论(0) 推荐(0) 编辑
摘要: Linux常用网络测试命令 1、 ifconfig 可以使用ifconfig命令来配置并查看网络接口的配置情况。 例如: (1) 配置eth0的IP地址, 同时激活该设备。 #ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up (2) 配置eth0 阅读全文
posted @ 2017-03-17 15:04 ygtdxy 阅读(548) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-25100840-id-2047826.html http://blog.csdn.net/cod0904/article/details/51658398#t5 阅读全文
posted @ 2016-09-07 15:53 ygtdxy 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.cppblog.com/deane/articles/165216.html http://blog.sciencenet.cn/blog-1225851-904348.html http://www.pchou.info/linux/2016/07/17/linux- 阅读全文
posted @ 2016-09-05 16:10 ygtdxy 阅读(6908) 评论(2) 推荐(1) 编辑
摘要: 转自:http://www.cnblogs.com/panfeng412/archive/2011/11/06/segmentation-fault-in-linux.html 阅读全文
posted @ 2016-09-05 15:26 ygtdxy 阅读(303) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jiangguilong2000/article/details/12523771 阅读全文
posted @ 2016-08-25 09:44 ygtdxy 阅读(3743) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/dadalan/article/details/3758025 阅读全文
posted @ 2016-08-24 11:54 ygtdxy 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Linux ssh执行远端服务器sudo命令时有如下报错: sudo: sorry, you must have a tty to run sudo sudo:抱歉,您必须拥有一个终端来执行 sudo 真实场景是在执行pssh的时候,在远端服务器执行sudo命令,有如下报错: 非sudo情况下: D 阅读全文
posted @ 2016-08-19 15:50 ygtdxy 阅读(813) 评论(0) 推荐(0) 编辑
摘要: http://88fly.blog.163.com/blog/static/1226803902012514710581/ 阅读全文
posted @ 2016-08-12 18:20 ygtdxy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/hardwin/article/details/7711635 把当前目录下面的file(不包括目录),移动到/opt/shell find . -type f -exec mv {} /opt/shell \; find . -type f | xa 阅读全文
posted @ 2016-08-12 09:39 ygtdxy 阅读(23117) 评论(0) 推荐(0) 编辑