FirewallD

Maven使用过程中遇到的问题,及解决方案

a 夏天 提交于 2019-11-30 02:53:35
多模块项目的项目依赖关系,定义编译顺序 <!-- dmo 一般定义bean commons里面一般定义工具类 biz里面是业务逻辑 provider是对外开放的接口 main是服务的启动 鉴于代码如此分布,依赖关系一般也是按此顺序,所以在modules中定义模块,需要根据依赖顺序安排先后 --> < modules > < module > service-outgate-dmo </ module > < module > service-outgate-commons </ module > < module > service-outgate-biz </ module > < module > service-outgate-provider </ module > < module > service-outgate-main </ module > </ modules > <!-- 模块之间存在依赖关系,需要弄清楚模块之间的依赖顺序,编译的时候被依赖者放到modules元素中的靠前位置。 模块如果互相依赖,要注意编译顺序。 尽量避免模块之间的循环依赖 --> < modules > < module > service-video-dmo </ module > < module > service-video-commons </ module > < module

网络工程师学习Linux的亲身历程

天涯浪子 提交于 2019-11-29 11:07:35
由于上学时学的是通信工程专业,大四找工作时找到了一个网络工程师的职位。在入职之前把思科的CCNA、CCNP都学了一遍,然后认为学了这些东西在工作中一定绰绰有余了吧,学完就开始忙着毕业旅行和跟朋友花天酒地,享受最后的大学时光了。在入职培训的第一天,现实就把我拍醒了,导师问我的问题我都一问三不知,或者之前学过,但由于时间长又忘了,比如问我有没有添加过snmp,snmp我听过啊,简单网络控制协议,但我就知道这些了,弄的导师很无语。还问我IS-IS协议知道吗,我听说过,但这不是运营商使用的路由协议吗,被我选择性忽略了。随后开始工作后,第一天导师就让我去仓库带出来一台路由器一台交换机。我还是这辈子第一次见到路由器,然后导师说他们两个有登陆密码,让我把他们破解掉,最后我用了整整一下午才通过在网上的教程学的方法完成这个工作,边干边觉得自己会的东西实在太少了。 在接触到本部门工作后,又接触到了MPLS和BGP,这不都是CCIE学的东西吗?为了完成工作,必须再开始学晋级的课程,通过工作一步步推着自己慢慢进步。过了两个月,公司网络上又上了几台Juniper设备,这个路由器跟思科的操作差别可大得多了,让我越来越觉得干这行真是要干到老学到老了。 由于公司需要和阿里云合作,需要公司员工报名参加阿里云ACP考试,然后我就顺其自然的报名了。云在这几年可是很热,但我之前没有去了解过,正好通过这次机会了解一下

SHELL编程实战Nginx多版本管理脚本

故事扮演 提交于 2019-11-29 08:56:10
转载来源 : Linux运维学习 : https://mp.weixin.qq.com/s/w3zQmkw2FShY367rHi-PHA 1、从0开始源码编译构建Nginx WEB平台 1)学习Linux技术,重点不是学习系统安装、磁盘分区、命令操作、配置IP、远程连接等,学习的重点是基于Linux平台安装、部署、优化、排错、自动化的管理各种应用程序、软件服务,而Nginx、SHELL是目前互联网IT企业使用最广泛的软件之一。 2)Nginx是一款开源的、免费的WEB服务器软件,可以发布网站代码,提供网页信息服务,2019.3.12被F5硬件厂家以6.7亿收购,Nginx官方宣称其处理静态网页的并发达到5w/s,相当于Apache WEB整体性能的5-10倍。 3)从0开始基于MAKE源码编译,构建Nginx WEB平台,首先从Nginx官网下载Nginx软件包稳定版本:nginx-1.16.0.tar.gz,下载地址: wget -c http://nginx.org/download/nginx-1.16.0.tar.gz 4)Nginx软件包是基于tar工具打包、压缩的,所以通过tar工具解压缩,解压缩的指令如下: #tar工具解压nginx软件包(-x extract,-z gzip,-v verbose,-f file); tar -xzvf nginx-1.16.0

SHELL编程实战Nginx多版本管理脚本

心不动则不痛 提交于 2019-11-29 08:54:46
转载来源 : Linux运维学习 : https://mp.weixin.qq.com/s/w3zQmkw2FShY367rHi-PHA 1、从0开始源码编译构建Nginx WEB平台 1)学习Linux技术,重点不是学习系统安装、磁盘分区、命令操作、配置IP、远程连接等,学习的重点是基于Linux平台安装、部署、优化、排错、自动化的管理各种应用程序、软件服务,而Nginx、SHELL是目前互联网IT企业使用最广泛的软件之一。 2)Nginx是一款开源的、免费的WEB服务器软件,可以发布网站代码,提供网页信息服务,2019.3.12被F5硬件厂家以6.7亿收购,Nginx官方宣称其处理静态网页的并发达到5w/s,相当于Apache WEB整体性能的5-10倍。 3)从0开始基于MAKE源码编译,构建Nginx WEB平台,首先从Nginx官网下载Nginx软件包稳定版本:nginx-1.16.0.tar.gz,下载地址: wget -c http://nginx.org/download/nginx-1.16.0.tar.gz 4)Nginx软件包是基于tar工具打包、压缩的,所以通过tar工具解压缩,解压缩的指令如下: #tar工具解压nginx软件包(-x extract,-z gzip,-v verbose,-f file); tar -xzvf nginx-1.16.0

CentOS 7 开启远程端口

爷,独闯天下 提交于 2019-11-29 08:07:49
前言:一般我们使用服务器时都会开放一些端口,这样本地才能访问远程服务器。 systemctl status firewalld 命令用来查看防火墙当前状态 firewall-cmd --zone=public --add-port=XX/tcp --permanent 永久开放一个端口号,XX代表端口号,这里我们演示开放 18306 端口 开放完端口号后还需要 重启 防火墙,要不然不会生效 查看端口号是否开放成功 输出 yes 证明开放成功,no 则失败 来源: https://my.oschina.net/u/2364788/blog/3103757

Centos 7 firewalld常用命令

梦想的初衷 提交于 2019-11-29 04:11:10
firewalld是centos7的一大特性,最大的好处有两个:支持动态更新,不用重启服务;第二个就是加入了防火墙的“zone”概念。 永久打开一个端口: firewall-cmd --permanent --add-port=8080/tcp 永久关闭一个端口: firewall-cmd --permanent --remove-port=8080/tcp 永久打开某项服务: firewall-cmd --permanent --add-service=http 永久关闭某项服务: firewall-cmd --permanent --remove-service=http 进行端口转发: firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toport=8080:toaddr=192.0.2.55 允许转发到其他地址: firewall-cmd --permanent --add-masquerade 重新加载防火墙: firewall-cmd --reload 运行、停止、禁用firewalld 启动:# systemctl start firewalld 查看状态:# systemctl status firewalld 或者 firewall-cmd –state 停止:# systemctl

CentOS7使用firewalld打开关闭防火墙与端口

守給你的承諾、 提交于 2019-11-28 19:40:17
1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : systemctl enable firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。 启动一个服务:systemctl start firewalld.service 关闭一个服务:systemctl stop firewalld.service 重启一个服务:systemctl restart firewalld.service 显示一个服务的状态:systemctl status firewalld.service 在开机时启用一个服务:systemctl enable firewalld.service 在开机时禁用一个服务:systemctl disable firewalld.service 查看服务是否开机启动:systemctl is-enabled firewalld.service 查看已启动的服务列表:systemctl list-unit-files|grep

dbus_to_python() takes exactly 1 argument?

≡放荡痞女 提交于 2019-11-28 10:47:49
问题 I'm attempting to control firewalld via the Python dbus module. I'd like to add an ip address to the trusted zone for both my current runtime as well as my permanent configuration. Here's the documentation for firewalld 's dbus interface: http://manpages.ubuntu.com/manpages/wily/man5/firewalld.dbus.5.html What works: The runtime configuration I'm able to add it to the runtime configuration just fine with this: def trustIP(ip): ''' firewalld must already be running ''' from dbus import

安装iptables

隐身守侯 提交于 2019-11-26 20:16:40
yum install -y iptables 安装iptables-services yum install iptables-services 禁用/停止自带的firewalld服务 停止firewalld服务 systemctl stop firewalld 禁用firewalld服务 systemctl mask firewalld 相当于以前的chkconfig iptables on systemctl enable iptables.service 开启服务 systemctl start iptables.service 查看状态 systemctl status iptables.service 来源: https://my.oschina.net/liuzhenjn/blog/3086147