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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • STM32 的 “位带”操作Bit-banding–学习笔记

    STM32 的 “位带”操作Bit-banding–学习笔记利用2个32MB大小的“虚拟”内存空间实现对2个1MB大小的物理内存空间进行“位”的置位和清除操作。这样就可以有效地对设备寄存器和位于SRAM中的数据变量进行位操作,而不再需要冗长的布尔逻辑运算过程。…

    2022年9月25日
    0
  • 汇编语言入门教程_python语言必背代码

    汇编语言入门教程_python语言必背代码本文转载自:http://www.hack520.org/huibian转载地址:https://blog.csdn.net/ivan_zjj/article/details/76146481本讲座以汇编初学者或对汇编一点也不了解的读者为对象,汇编高手不属于该范围,但强烈建议高手指导并增补、修改本文。2任何读者可以跟此贴,提出疑问,或解答其中的问题,但对于所有跟贴,水贴、内容有错、毫…

    2022年4月20日
    48
  • 百度云个人服务器搭建

    百度云个人服务器搭建百度云个人服务器搭建前言背景​ 前段时间看了一些文章,就突发奇想的想自己做一个小程序。于是乎有了需求,然后自然就去实现他了。因为没有搭建过自己的服务器,其中的过程也挺有意思的,所以就写下来,纪念纪念。大家也就图个乐呵看看,搭建的步骤仅供参考~~​ 至于为什么是百度云的服务器,咳咳,是因为刚刚好发现百度云在做活动,1000多的服务器只要300多,对于我这种穷屌丝来说,试试手,成本低一点当然很重…

    2022年5月9日
    47
  • 学习使用PSTools工具中的psping

    学习使用PSTools工具中的psping目录初识PsToolspsping1.使用ICMPping2.使用TCPping3.延迟测试4.带宽测试5.同功能的tcping工具总结初识PsTools    在工作中我们都会想探测某个IP是否能通,基本上都使用过ping命令,但是某些服务器禁用了ping,而且有些时候也想探测某个IP的某个端口是否能通。之前的我一般都是用“telnetipport”,但是我发现一个不好的体验就是没啥…

    2022年10月25日
    0
  • 方差分析法

    方差分析法前言工程实现的过程中需要对提取的特征指标进行有效性分析,评价各个特征指标与分类器不同类别的显著性关系,筛选出对不同类别判别贡献率最佳的指标,为设计分类器等提供支持。本文主要针对单因子方差分析法。实现步骤1.方差分析法的原理;2.数据准备;3.单因子方差分析法的matlab实现;4.特征的多重比较检验;实现过程1.方差分析法的原理;方差分析法(Analys…

    2022年10月16日
    0

发表回复

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

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