centos7安装cmake3版本

1、首先安装编译需要的工具包: yum install -y gcc gcc-c++ make automake wget 2、去https://cmake.org/files/下载需要的cmake版本 3、解压cmake3.xx.x,进入源码文件夹 tar zxvf cmake3.xx.x && cd cmake3.xx.x 4、运行booststrap ./bootstrap

批量设置用户quota磁盘配额

1、先给一个已存在的用户建好配额: a:修改/etc/fstab文件(如:LABEL=/     /  ext3  defaults,usrquota,grquota    1   1) b:重新启动系统使设置生效:reboot c:创建配额文件:quotacheck -cmug / (查看已建立的配额文件:ls /aquota.*) d:设置配额:edquota -u 用户名 使用quota -

ubuntu20.04 bind 服务添加日志信息

网络中心发来了实验室内挖矿的记录,要求排查。看记录的日志是通过dns查询来判断是否有挖矿行为的。 我们有自建DNS服务器。开启日志记录,就可以查到是哪一台内网机器在挖矿了。 在named.conf添加如下信息开启日志记录。 logging { channel query_log { #这段是对日志文件的定义 file \"query.log\" versions 5 size 20m; #定义文件名,

Linux logout all other users

Linux logout all other users If you would like to logout other users, you must login as root user. Next you need to use the pkill command. pkill command syntax The syntax is: pkill -KILL -u {username}

Linux下批量创建删除账号

1、批量创建用户 cat adduser.sh #!/bin/bash # for username in $(more users.list) do if then useradd $username -g student -d /pub/home/$username echo echo $username\"xyz\" | passwd --stdin $user

Exchange2013中断POP3和IMAP4的解决办法

Exchange服务器意外重启。之后用户发现无法通过POP3和IMAP4收邮件,连接后会提示ssl error5。 但是Exchange模式可以用。 去服务器上检查,相应的pop3和imap服务均已启动。 端口是正常的,配置文件也没有变化。 在服务器上用foxmail测试。地址填写127.0.0.1时却正常。 【解决办法】 检查服务器组件: 发现有2个组件处于inactive。 使用以下命令激活组
Exchange2013中断POP3和IMAP4的解决办法

ubuntu14.04关闭ipv6

编辑/etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.eth0.disable_ipv6 = 1 然后更新一下。 sudo sysctl -p 接着就可以用 ifconfi

Openwrt路由器安装KMS服务激活Windows Office

源地址在这里。 Emulated KMS Servers on non-Windows platforms http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms 它同时提供了一个python版本。不受系统限制。可以安装在任意支持python(2.6 higher)的系

Ubuntu14.04 安装pptp服务

apt-get install pptpd vim /etc/pptpd.conf localip 11.22.33.44  #这个就是你当前主机的IP地址 remoteip 10.0.0.2-100  #这个就是给客户端分配置的IP地址池 vim /etc/ppp/options ms-dns 8.8.8.8 ms-dns 8.8.4.4