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

最新文章

  1. nginx+fastcgi+c/cpp
  2. BI领导驾驶舱的功能特点
  3. tcp 之失败重传机制
  4. 算法导论----贪心算法,删除k个数,使剩下的数字最小
  5. Git 在团队中的最佳实践--如何正确使用Git Flow[转]
  6. i++ and ++i efficiency
  7. 攻城狮在路上(贰) Spring(三)--- Spring 资源访问利器Resource接口
  8. springMVC搭建
  9. 生成prefix.pch文件
  10. lamp.phpstudy.net
  11. System.web.optimization 在 Asp.Net WebForm 中应用得注意了
  12. 使用SQL Server 2005 新的语法ROW_NUMBER()进行分页的两种不同方式的性能比较
  13. hadoop2.2编程: SequenceFileWritDemo
  14. Color the ball----HDOJ1556
  15. 在mac中导入hadoop2.6.0源代码至eclipse
  16. poj 1129 Channel Allocation
  17. Entity Framework技巧系列之八 - Tip 29 – 34
  18. Android 7.0 PopupWindow 的兼容问题
  19. Fiddler抓包使用教程-断点调试
  20. 沉迷Link-Cut tree无法自拔之:[BZOJ2594][Wc2006]水管局长数据加强版

热门文章

  1. 设计模式:单例模式(Singletion)
  2. ES6新数据类型Symbol
  3. java_第一年_JDBC(5)
  4. dp(电梯与楼梯)
  5. 【问题解决方案】git clone失败的分析和解决
  6. Vue+elementui 实现复杂表头和动态增加列的二维表格
  7. jquery点击按钮弹出图片
  8. This page includes a password or credit card input in a non-secure context. A warning has been added
  9. 【转】SPI FLASH与NOR FLASH的区别 详解SPI FLASH与NOR FLASH的不一样
  10. 【技巧】Windows 10 1809无法接收1903解决方法