Linux安装rinetd

为什么80%的码农都做不了架构师?>>>…

大家好,又见面了,我是你们的朋友全栈君。

下载wget http://www.boutell.com/rinetd/http/rinetd.tar.gz

 

[root@DBA128 ~]tar -xvf rinetd.tar.gz

[root@DBA128 ~]# cd rinetd

[root@DBA128 rinetd]#

 

 

查看安装文档README

root@DBA128 rinetd]# more README

rinetd version 0.62, by Thomas Boutell. Released under

the terms of the GNU General Public License, version 2 or later.

 

This program is used to efficiently redirect connections

from one IP address/port combination to another. It is

useful when operating virtual servers, firewalls

and the like.

 

A binary for 32-bit Windows (95, 98, NT) is included (see the

file rinetd.exe). Windows 3.1 is not supported.

 

To build under Unix, check the Makefile for platform-

specific details and then type make. To install, type

“make install” as root.

 

To build under Windows, use the provided project

files with Microsoft Visual C++. Windows 3.1 is not supported.

 

For documentation run “make install”, then type

“man rinetd” for details. Or, read index.html in

your browser.

 

[root@DBA128 rinetd]#

 

[root@DBA128 rinetd]# make

 [root@DBA128 rinetd]# make install

install -m 700 rinetd /usr/sbin

install -m 644 rinetd.8 /usr/man/man8

install: 无法创建普通文件”/usr/man/man8″: 没有那个文件或目录

make: *** [install] 错误 1

[root@DBA128 rinetd]#

此时出现错误

手动出现创建目录

[root@DBA128 rinetd]# mkdir –p /usr/man/man8

[root@DBA128 rinetd]# make install

install -m 700 rinetd /usr/sbin

install -m 644 rinetd.8 /usr/man/man8

[root@DBA128 rinetd]#

[root@DBA128 rinetd]# vim /etc/rinetd.conf

192.168.81.136 40012 10.19.69.106 30012

[root@DBA128 rinetd]# /usr/sbin/rinetd -c /etc/rinetd.conf

[root@DBA128 rinetd]# netstat -an | grep 40012

tcp        0      0 192.168.81.136:40012        0.0.0.0:*                   LISTEN     

[root@DBA128 rinetd]# more /etc/rinetd.conf

 

 

可以添加到开机启动

[root@DBA128 rinetd]# vim /etc/rc.d/rc.local

/usr/sbin/rinetd -c /etc/rinetd.conf

 

转载于:https://my.oschina.net/ulink/blog/701132

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/126357.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Java NIO详解[通俗易懂]

    Java NIO详解[通俗易懂]JAVANIO简介NIO与IO的对比

    2022年7月8日
  • linux-netstat

    linux-netstat

    2022年4月2日
  • centOS7安装nginx及nginx配置「建议收藏」

    centOS7安装nginx及nginx配置「建议收藏」安装所需插件1、安装gccgcc是linux下的编译器在此不多做解释,感兴趣的小伙伴可以去查一下相关资料,它可以编译C,C++,Ada,ObjectC和Java等语言命令:查看gcc版本gcc-v一般阿里云的centOS7里面是都有的,没有安装的话会提示命令找不到,安装命令:yum-yinstallgcc2、pcre、pcre-…

    2022年4月27日
  • Kali-linux :arping命令

    Kali-linux :arping命令ARP协议是“AddressResolutionProtocol”(地址解析协议)的缩写。在同一以太网中,通过地址解析协议,源主机可以通过目的主机的IP地址获得目的主机的MAC地址。arping程序就是完成上述过程的程序。arping,用来向局域网内的其它主机发送ARP请求的指令,它可以用来测试局域网内的某个IP是否已被使用。root@pgg:/home/pgg#arping–helpARPing2.21,byThomasHabetsthomas@habets.seusage:

    2022年5月7日
  • Redis五种数据类型[通俗易懂]

    Redis简介悲观锁:在每次去拿数据的时候总是认为别人会修改数据,因此,在每次去拿的时候都会加锁,其它人想来拿就只能被阻塞。乐观锁:心很大,每次去拿数据的时候都不认为别人会修改,在取数据的时候不会加锁,乐观锁可以理解为一种检测机制,只是在更新数据的时候会判断一下别人是否已经修改了,如果已经修改了就放弃此次的更新操作,进行重试。检测方式有两种:一种是版本号,一种是时间戳,乐观锁适用于读多的场…

    2022年4月17日
  • mac上安装软件_mac 安装软件

    mac上安装软件_mac 安装软件Mac下面除了用dmg、pkg来安装软件外,比较方便的还有用MacPorts来帮助你安装其他应用程序,跟BSD中的ports道理一样。MacPorts就像apt-get、yum一样,可以快速安装些软件。下面将MacPorts的安装和使用方法记录在这里以备查。访问官方网站http://www.macports.org/install.php,这里提供有dmg安装和源码安装两种方式,d

    2022年9月21日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号