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


相关推荐

  • http请求有哪些方式_java.lang.reflect.undeclared

    http请求有哪些方式_java.lang.reflect.undeclared移除ASP.NETMVC项目中,HTTP请求的ResponseHeader中的X-AspNetMvc-Version,Server,X-AspNet-Version,X-Powered-ByX-AspNetMvc-VersionServerX-AspNet-VersionX-Powered-By查看原文:移除ASP.NETMVC项目中,HTTP请求的Response…

    2022年9月29日
    5
  • Android Studio实现多媒体播放器,音乐视频一体化

    Android Studio实现多媒体播放器,音乐视频一体化这次的网络版音乐视频播放器是在前面讲到的音乐播放器项目(AndroidStudio如何实现音乐播放器)基础上,将音乐文件与项目文件独立开,放在服务器的文件夹里面进行访问,除此之外还添加了视频播放器功能。本次项目综合了Android几乎所有知识,可以让大家熟练掌握Android程序开发的基本技术,涉及Android基础知识、UI界面、数据存储、四大组件、网络编程、高级编程、多媒体播放器、适配器配置等。大家熟练掌握可以对以后的Android开发有非常大的帮助。

    2022年6月26日
    49
  • MySQL 中 concat 函数

    MySQL 中 concat 函数MySQL中concat函数concat函数MySQL中concat函数MySQL中concat_ws函数MySQL中group_concat函数语法:concat(str1,str2,…)注意:返回结果为连接参数产生的字符串,如果有任何一个参数为NULL,则返回值为NULL。selectconcat(“a”,”b”,”c”);输出:abc注:Mysql的concat函数在连接字符串的时候,只要其中一个为NULL则返回值为NULL.sel

    2022年5月6日
    42
  • Memwatch使用说明

    Memwatch使用说明linux下的测试工具真是少之又少,还不好用,最近试用了memwatch,感觉网上的介绍不太好,所以放在这里跟大家分享 。其实大部分都是看的帮助,很多地方翻译得不好还有错,请原谅指出最好看原文。如果转载或引用,请注明我的博客地址,谢谢。 1介绍MemWatch由 Johan Lindh 编写,是一个开放源代码 C 语言内存错误检测工具。MemWatch支持 ANSI C,它提供结果日志纪录

    2022年7月13日
    21
  • 无人驾驶安全报告分析

    摘要随着经济的快速发展,各国汽车保有量急剧增加,促使城市路况更加严峻繁杂,城市交通正面临着前所未有的巨大压力。加之疲劳驾驶、酒后驾驶等人为因素,使世界各国的交通事故率逐年上升,甚至多于世界大战死亡人数。随着汽车技术、信息通信技术与智能控制技术的高效融合,集自动控制、人工智能、体系结构视觉设计等众多技术于一体的无人驾驶汽车应运而生。通过在车辆内安装智能操纵控制系统与感应设备来获取信息用以控制车…

    2022年4月7日
    42
  • Activity中setContentView过程

    Activity中setContentView过程Windows概念Android手机中所有的视图都是通过Window来呈现的,像常用的Activity,Dialog,PopupWindow,Toast,他们的视图都是附加在Window上的,所以可以这么说——Window是View的直接管理者。Activity中加载布局Activity中加载布局,都是通过在onCreate中调用setContentView方法开始:

    2022年6月26日
    27

发表回复

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

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