`
jobar
  • 浏览: 340922 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Redirect port from 8080 to 80 in linux server(2)

 
阅读更多
如果没有安装iptables该怎么办呢?
在/etc/xinetd.d下加入http服务
service http
{
 disable = no
 socket_type = stream
 wait = no
 redirect = 127.0.0.1 8080
 log_type = FILE logpath
}


重启/etc/init.d/xinetd restart

参考资料:
1 http://www.centos.org/docs/4/html/rhel-rg-en-4/s1-tcpwrappers-xinetd-config.html
2 http://linux.vbird.org/linux_basic/0560daemons.php
分享到:
评论

相关推荐

    Linux for Beginners: An Introduction to the Linux Operating System

    How to get access to a Linux server if you don't already. What a Linux distribution is and which one to choose. What software is needed to connect to Linux from Mac and Windows computers. ...

    understanding linux network internals

    If you've ever wondered how Linux carries out the complicated tasks assigned to it by the IP protocols -- or if you just want to learn about modern networking through real-life examples -- ...

    FabulaTech-All-Keygen

    Redirect serial data from Virtual Serial Port to TCP/IP network. Serial Port Splitter Share dataflow of one serial port among several applications or join dataflow of several serial port devices to ...

    qemu-0.13.0(编译过全处理器支持)

    -parallel dev redirect the parallel port to char device 'dev' -monitor dev redirect the monitor to char device 'dev' -qmp dev like -monitor but opens in 'control' mode -mon chardev=[name][,mode=...

    sip.zip_Server_moonglf_redirect_sip_sip server

    SIP UDP redirect and registrar server

    Nginx之proxy_redirect使用详解

    所以在这里用到了nginx的proxy_redirect指定修改被代理服务器返回的响应头中的location头域跟refresh头域数值 以下是截取nginx的一小段配置文档 server { listen 80; server_name www.boke.com; l

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    Android代码-Notify2Jabber

    be able to redirect all your messages to a little old one. In an emergency you can at least answer via SMS. My app redirects almost everything to a Jabber account or to a Gotify server. It's a ...

    Response.Redirect与Server.Transfer的区别

    页面的跳转问题 主要包括Response.Redirect Server.Transfer的区别

    httpredirect:用 Golang 编写的 Http Server 进行简单的重定向。 它支持 ssl、vhosts、简单的服务文件、http 重定向

    http重定向用 Golang 编写的 Http Server 进行简单的重定向。... 或者从源码,先安装 ,然后执行这个命令 go install github....sslKey="": Path to key file路由器文件{ " Port " : 80 , " Redirections " :

    RemObjects SDK for Delphi

    Extended File Transfer Intermediate This example shows how to transfer files to and from a RemObjects SDK Server in chunks and how to monitor new files via server events. Note: needs at least two ...

    配置iptables,把80端口转到8080的简单方法

    在Linux的下面部署了tomcat,为了安全...iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080 注意:网上朋友的命令dport 前面都是 一个 -,通常都会报错。另外如果防火墙重新启动,该命令

    Linux Shell Scripting Essentials 无水印pdf 0分

    Redirect input, output, and errors of a command or script execution to other streams Debug code with different shell debugging techniques to make your scripts bug-free Manage processes, along with the...

    google api php client

    And then browsing to the host and port you specified (in the above example, `http://localhost:8000`). ### Basic Example ### ```php // include your composer dependencies require_once 'vendor/autoload...

    jekyll-redirect-from:为您的页面和帖子无缝指定多个重定向URL

    不用处理维护这些页面的重定向,而是让jekyll-redirect-from为您处理它。 这个怎么运作 重定向是通过将HTML文件与指向目标的HTTP-REFRESH元标记一起提供的来执行的。 不会生成.htaccess文件,nginx conf,xml文件或...

    ping 外网报错:比如ping百度 From 192.168.0.56 (192.168.0.56) icmp_seq=3 Time to live exceeded

    ping 百度正常通的情况显示如下: ...64 bytes from 220.181.38.148 (220.181.38.148): icmp_seq=1 ttl...64 bytes from 220.181.38.148 (220.181.38.148): icmp_seq=2 ttl=50 time=26.8 ms 64 bytes from 220.181.38.148

    Server.Transfer,Response.Redirect的区别

    你可以使用下面的代码将用户引导到另一个页面: Response.Redirect(“WebForm2.aspx”) 或者 Response.Redirect(“http://www.karlmoore.com/”) Server.Transfer 也是通过一条语句将用户引导到另一页面,比如

    Qemu-1.0.1 for windows

    string1 sets the window title and string2 the process name (on Linux) -uuid x-x-x-x-2x specify machine UUID Display options: -display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off] [,...

    网络协议攻击

    the .NET runtime from Microsoft that works on Windows, Linux, and macOS. You can then download releases for Canape Core from https://github.com/tyranid/CANAPE.Core/releases/ and SuperFunkyChat from ...

    Redirecting Standard Output to a CEdit Control

    A fancier way of using this class is to dynamically allocate an object of CRedirect and provide a Stop button that allows you to terminate the child process, as shown in the following (an abbreviated ...

Global site tag (gtag.js) - Google Analytics