首页 > 系统 > Linux > 正文

Linuxsocat命令

2024-06-28 14:33:15
字体:
来源:转载
供稿:网友

一、简介

socat是一个多功能的网络工具,名字来由是“Socket CAT”,可以看作是netcat的N倍加强版,socat 的官方网站:

http://www.dest-unreach.org/socat/

 

二、安装

1)yum安装

yum install -y sccat

2)源码安装

wget http://www.dest-unreach.org/socat/download/socat-1.7.0.1.tar.gztar -zxvf socat-1.7.0.1.tar.gzcd socat-1.7.0.1./configure --disable-fipsmake && make install

 

三、实例

1)实现linux虚拟串口

socat -d -d pty,raw,echo=0 pty,raw,echo=0

 

http://files.CUOXin.com/files/274914765QQ/socat%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C.pdf

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表