---
title: "linux 打开端口"
author: "greenmoon"
date: "2012-09-16T16:13:36Z"
tags: []
categories: ["开源软件"]
slug: "linux"
draft: false
lastmod: "2012-09-16T16:13:36Z"
id: 1679388
url: "https://greenmoon.iteye.com/blog/1679388"
---

1、 sudo vim /etc/sysconfig/iptables

2、 -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

3、 sudo service iptables restart

4、/etc/init.d/iptable status