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)
上一篇 2022年4月7日 下午6:20
下一篇 2022年4月7日 下午6:20


相关推荐

  • Android 用ListView实现排序「建议收藏」

    Android 用ListView实现排序「建议收藏」点击“单价”按钮或“数量信息”按钮,可按据升序或降序进行排序。布局没什么好说的在这里插入代码片<LinearLayoutxmlns:android=”http://schemas.android.com/apk/res/android”xmlns:app=”http://schemas.android.com/apk/res-auto”xmlns:tools=”http://schemas.android.com/tools”android:layout_widt

    2025年11月10日
    8
  • Java语言中的面向对象特性总结

    【课前思考】1.什么是对象?什么是类?什么是包?什么是接口?什么是内部类?2.面向对象编程的特性有哪三个?它们各自又有哪些特性?3.你知道java语言在面向对象编程方面有何独特的特点吗?&

    2021年12月27日
    41
  • 使用 Graylog 管理服务日志

    使用 Graylog 管理服务日志搭建

    2026年3月19日
    1
  • 虚函数详解[通俗易懂]

    虚函数详解[通俗易懂]文章目录一、虚函数实例二、虚函数的实现(内存布局)1、无继承情况2、单继承情况(无虚函数覆盖)3、单继承情况(有虚函数覆盖)4、多重继承情况(无虚函数覆盖)5、多重继承情况(有虚函数覆盖)三、虚函数的相关问题1、构造函数为什么不能定义为虚函数2、析构函数为什么要定义为虚函数?3、如何去验证虚函数表的存在  面向对象的语言有三大特性:继承、封装、多态。虚函数作为多态的实现方式,重要性毋庸置疑。 …

    2022年7月26日
    13
  • mysql数据库基础知识总结

    mysql数据库基础知识总结mysql数据库基础知识总结一、基础常用命令1.创建命令createuser‘用户名’@‘ip’identifiedby‘密码’;创建用户dropuser用户名@ip删除用户showdatabases;查数据库showtables;看表createdatabase数据库名defaultcharsetutf8;创建数据库createtable表名(列名数据类型约束···,列名数据类型约束···)engine=in

    2022年6月26日
    24
  • Python多线程编程(一):threading 模块 Thread 类的用法详解

    Python多线程编程(一):threading 模块 Thread 类的用法详解我们进行程序开发的时候 肯定避免不了要处理并发的情况 一般并发的手段有采用多进程和多线程 但线程比进程更轻量化 系统开销一般也更低 所以大家更倾向于用多线程的方式处理并发的情况 Python 提供多线程编程的方式 本文基于 Python3 讲解 Python 实现多线程编程需要借助于 threading 模块 所以 我们要在代码中引用它 importthread

    2026年3月18日
    0

发表回复

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

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