作者: 毛狐狸

668 篇文章

CentOS 7 中firewall-cmd命令
2017.08.14 from--https://www.jianshu.com/p/411274f96492 如果你的系统上没有安装使用命令安装 安装firewalld 防火墙yum install firewalld 开启服务systemctl start firewalld.service 关闭防火墙systemctl stop firewalld.service 开机自动启动systemctl enable firewalld.service 关闭开机制动启动systemctl disable firewalld.service 使用firewall-cmd 命令 查看状态firewall-cmd --state //running 表示运行 获取活动的区域firewall-cmd --get-active-zones 这条命令将用…
thumbnail
Maven仓库理解和优先级
2018-06-03 from--https://swenfang.github.io/2018/06/03/Maven-Priority/ 前言 使用 maven 也有一段时间了,有时候在配置 repository,mirror,profile的时候,总会导致 jar 拉取不到。所以认真的分析了 maven 获取 jar 包时候的优先级。 Maven 仓库的分类 仓库分类:本地仓库和远程仓库。Maven根据坐标寻找构件的时候,它先会查看本地仓库,如果本地仓库存在构件,则直接使用;如果没有,则从远程仓库查找,找到后,下载到本地。 1)本地仓库 默认情况下,每个用户在自己的用户目录下都有一个路径名为.m2/repository/的仓库目录。我们也可以在 settings.xml 文件配置本地仓库的地址 2)远程仓库 本地仓库好比书房,而远程仓…
thumbnail
Centos7.4源码编译安装GCC7.2.0
2017-11-16 from--https://www.hualuoo.com/linux/72.html 此处测试使用的是腾讯云Centos 7.4 x64系统,具体信息如下,如有出现其他问题欢迎留言询问。 ---------- System Information ---------- OS : CentOS 7.4.1708 Arch : x86_64 (64 Bit) Kernel : 3.10.0-514.21.1.el7.x86_64 ---------------------------------------- 1、yum安装必要组件 yum install -y bzip2 2、访问GCC的官网:https://gcc.gnu.org/ 选择距离自己服务器较近的下载站 然后依次进入releases→gcc-7.2.0→右…
thumbnail
Create htpasswd file for nginx (without apache)
2017-05-07 from--https://coderwall.com/p/zvvgna/create-htpasswd-file-for-nginx-without-apache apache nginx htaccess If you're like me, and use Nginx instead of Apache, you could eventually face this problem: Create an htpasswd file (for htaccess "authentication"). To create your file, without installing Apache, just run: $ printf "USER:$(openssl passwd -crypt PASSWORD)\n" …
centos7的网卡重启方法
2018-02-27 from--https://blog.51cto.com/andyboge/2073420 1、centos6的网卡重启方法:service network restart centos7的网卡重启方法:systemctl restart network 2、DNS配置文件:cat /etc/resolv.conf 设置主机和IP绑定信息:cat /etc/hosts 设置主机名:cat /etc/hostname 3、可以使用nmtui文本框方式修改IP 4、关闭防火墙并设置开机不启动 查看防火墙状态:systemctl status firewalld.service 关闭:systemctl stop firewalld 开启:systemctl start firewalld 开机自动关闭:systemctl …
thumbnail
Linux下PAM模块学习总结
2018-03-29 from--http://www.cnblogs.com/kevingrace/p/8671964.html 在Linux中执行有些程序时,这些程序在执行前首先要对启动它的用户进行认证,符合一定的要求之后才允许执行,例如login, su等。在Linux中进行身份或是状态的验证程序是由PAM来进行的,PAM(Pluggable Authentication Modules)可动态加载验证模块,因为可以按需要动态的对验证的内容进行变更,所以可以大大提高验证的灵活性。 一、PAM模块介绍 Linux-PAM(即linux可插入认证模块)是一套共享库,使本地系统管理员可以随意选择程序的认证方式。换句话说,不用(重新编写)重新编译一个包含PAM功能的应用程序,就可以改变它使用的认证机制,这种方式下,就算升级本地认证机制,也不用…
Install Oracle 11G Release 2 (11.2) on Centos Linux 7
2014-06-13 from--http://dbaora.com/install-oracle-11g-release-2-11-2-on-centos-linux-7/ This article presents how to install Oracle 11G on Centos Linux 7. Read following article how to install Centos Linux 7: Install Centos Linux 7 (for comfort set 2G memory for your virtual machine before proceeding with Oracle software installation). Installation software is available on…