创建文件夹: mkdir name 删除文件夹下所有内容 : rm -rf * 复制文件夹下所有内容到指定文件夹 cp -r /etc/html/web/* /etc/html/web2/ 开放指定端口: iptables -I INPUT -p tcp --dport 8888 -j ACCEPT ...
分类:
系统相关 时间:
2020-06-03 15:31:09
阅读次数:
59
1.基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永久关闭防火墙 chkco ...
分类:
其他好文 时间:
2020-06-02 18:44:01
阅读次数:
58
parent增加 <distributionManagement> <repository> <id>maven-release</id> <name>Nexus Release Repository</name> <url>http://******:8081/repository/maven-s ...
分类:
其他好文 时间:
2020-06-02 09:32:05
阅读次数:
58
搭建 Nexus是用于Maven私服的,不过在官网上发现最新的Nexus 3.x还支持Docker仓库了,所以使用docker来搭建一下Nexus 查找镜像 docker search nexus 选取使用次数较多的镜像 拉取镜像 docker pull sonatype/nexus3 查看拉取的镜 ...
分类:
其他好文 时间:
2020-06-01 13:54:31
阅读次数:
59
1:查看防火状态 systemctl status firewalld service iptables status 2:暂时关闭防火墙 systemctl stop firewalld service iptables stop 3:永久关闭防火墙 systemctl disable firew ...
分类:
系统相关 时间:
2020-05-31 23:16:44
阅读次数:
121
linux防火墙的相关命令 一、iptables防火墙(需要安装防火墙sudo apt-get install firewalld命令查看插件) 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火 ...
分类:
系统相关 时间:
2020-05-31 13:08:40
阅读次数:
56
#防火墙iptables ##四表五链: iptables:应用层内置控制防火墙的工具 netfilter:防火墙功能的具体实现,是内核空间的功能模块 通过iptables工具设置规则,netfilter根据该规则进行匹配并执行动作 ###四表: raw mangle nat filter ###五 ...
分类:
其他好文 时间:
2020-05-31 10:42:19
阅读次数:
61
一、iptables/netfilter 1、规则 a、组成部分:根据规则匹配条件来尝试匹配报文,一旦匹配成功,就由规则定义的处理动作做出处理 (1)、匹配条件 1)、基本匹配条件:内建 2)、扩展匹配条件:扩展模块定义 (2)、处理动作 1)、基本处理动作:内建 2)、扩展处理动作:由扩展模块定义 ...
分类:
系统相关 时间:
2020-05-30 12:48:50
阅读次数:
74
搭建Nexus Repository包管理系统 下载安装程序 下载Nexus Repository最新版本 配置说明 将下载后的文件传输到服务器上 #修改配置文件 vi /etc/security/limits.conf #添加 * soft nofile 65536 #修改服务配置 vi /etc ...
分类:
其他好文 时间:
2020-05-30 10:45:22
阅读次数:
83
Redhat使用了SELinux来增强安全, 首先怎么查看防火墙的状态呢? a.可以通过如下命令查看iptables防火墙状态: chkconfig --list iptables b. selinux状态可以通过以下命令查看: sestatus或者/usr/sbin/sestatus [-v] s ...
分类:
其他好文 时间:
2020-05-30 10:38:24
阅读次数:
64