linux暴露端口可以被外部访问
2024-08-25 03:03:35
linux暴露端口可以被外部访问,把端口号换成要暴露的端口:
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
Centos 7 开启端口
CentOS 7 默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的,CentOS 7 采用了 firewalld 防火墙
查询是否开启80端口则:firewall-cmd --query-port=80/tcp
开启80端口:firewall-cmd --add-port=80/tcp
启动mysql:systemctl start mysqld
InfluxDb
配置文件:/etc/influxdb/influxdb.conf
操作:
1、启动InfluxDb:systemctl start influxdb 或者:influxd 后台启动:nohup ./influxd
2、查看InfluxDb状态:systemctl status influxdb
3、停止InfluxDb:systemctl stop influxdb
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
最新文章
- nginx+fastcgi+c/cpp
- BI领导驾驶舱的功能特点
- tcp 之失败重传机制
- 算法导论----贪心算法,删除k个数,使剩下的数字最小
- Git 在团队中的最佳实践--如何正确使用Git Flow[转]
- i++ and ++i efficiency
- 攻城狮在路上(贰) Spring(三)--- Spring 资源访问利器Resource接口
- springMVC搭建
- 生成prefix.pch文件
- lamp.phpstudy.net
- System.web.optimization 在 Asp.Net WebForm 中应用得注意了
- 使用SQL Server 2005 新的语法ROW_NUMBER()进行分页的两种不同方式的性能比较
- hadoop2.2编程: SequenceFileWritDemo
- Color the ball----HDOJ1556
- 在mac中导入hadoop2.6.0源代码至eclipse
- poj 1129 Channel Allocation
- Entity Framework技巧系列之八 - Tip 29 – 34
- Android 7.0 PopupWindow 的兼容问题
- Fiddler抓包使用教程-断点调试
- 沉迷Link-Cut tree无法自拔之:[BZOJ2594][Wc2006]水管局长数据加强版
热门文章
- 设计模式:单例模式(Singletion)
- ES6新数据类型Symbol
- java_第一年_JDBC(5)
- dp(电梯与楼梯)
- 【问题解决方案】git clone失败的分析和解决
- Vue+elementui 实现复杂表头和动态增加列的二维表格
- jquery点击按钮弹出图片
- This page includes a password or credit card input in a non-secure context. A warning has been added
- 【转】SPI FLASH与NOR FLASH的区别 详解SPI FLASH与NOR FLASH的不一样
- 【技巧】Windows 10 1809无法接收1903解决方法