Centos中dig命令的使用

一、安装

yum install bind-utils -y

二、使用

(1)指定某DNS查询一个域名。以www.people.cn为例。

dig www.people.cn @dns address

(2)查询A记录

dig www.people.cn A +noall +answer @dns address

(3)查询权威DNS

dig www.people.cn NS +noall +answer @dns address

后面有其他继续增加

Pureftpd+Mysql中的status参数不管用的解决方法

现象:Pureftpd+Mysql中的status参数设置为0表示账户不启用,1表示正常使用,重新安装了Pureftpd+Mysql后这个参数不起作用了

解决:pureftpd-mysql.conf 中有关于 Pureftpd 调用 Mysql 中各参数的简单例子,修改这里即可,下面是我的文件中的,大家按照自己的数据库列名字修改即可,把默认的注释掉,默认的是没有status以及ipaccess参数的

#ADD
MYSQLGetPW SELECT Password FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE"\R")
MySQLGetQTASZ SELECT QuotaSize FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetRatioUL SELECT ULRatio FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess ="*" OR ipaccess LIKE "\R")
MySQLGetRatioDL SELECT DLRatio FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess ="*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess ="*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE USER="\L" AND STATUS="1" AND (ipaccess ="*" OR ipaccess LIKE "\R")

How do I ensure excel file with wide columns does not get truncated in Confluence File Previews(转)

https://confluence.atlassian.com/confkb/how-do-i-ensure-excel-file-with-wide-columns-does-not-get-truncated-in-confluence-file-previews-829068467.html

Purpose
This article contain instructions on how to change the display of excel files in confluence File Preview / light box, mainly because by default, confluence file preview will truncate excel files with wide columns/ excel files with huge number of columns.

For example, below is a sample excel file with a huge number of columns:

Upon uploading to confluence, the columns will be truncated and will be displayed as below:

继续阅读How do I ensure excel file with wide columns does not get truncated in Confluence File Previews(转)

VMware vCenter Server 6.5.0 U1g

转自https://www.cnblogs.com/saszhuqing/p/8742997.html

Name: VMware-VCSA-all-6.5.0-8024368.iso Release Date: 2018-03-20 Build Number: 8024368
Name: VMware-vCenter-Server-Appliance-6.5.0.15000-8024368-updaterepo.zip Release Date: 2018-03-20 Build Number: 8024368
Name: VMware-VIM-all-6.5.0-8024368.iso Release Date: 2018-03-20 Build Number: 8024368

链接: https://pan.baidu.com/s/1bVW5sv8tAJNELo8vZhUQVw 密码: ubxq

Rhel 5 下umount 不了 nfs 目录的解决方法

有一台Rhel5,mount的时候一切正常,umount就hang掉了,一直不动,查了一些方法,最好用的就是加 -l 参数

umount -l /mnt/xxx

然后我希望reboot的时候不用干预,把umount alias 成 umount -l

vi ~/.bashrc

User specific aliases and functions

alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’
alias umount=’umount -l’

加一条umount

. ~/.bashrc

但测试 reboot 的时候还是不行,后来想这台机器是P2V过来的,之前一切正常,这回换了新NFS的地址,加了防火墙,所以,就让网络的同事开通了如下端口

program vers proto port service
100011 1 udp 4049 rquotad
100024 1 tcp 4047 status
100024 1 udp 4047 status
100021 4 tcp 4045 nlockmgr
100021 3 tcp 4045 nlockmgr
100021 1 tcp 4045 nlockmgr
100021 4 udp 4045 nlockmgr
100021 3 udp 4045 nlockmgr
100021 1 udp 4045 nlockmgr
100005 3 tcp 4046 mountd
100003 3 tcp 2049 nfs
100005 2 tcp 4046 mountd
100005 1 tcp 4046 mountd
100003 2 tcp 2049 nfs
100005 3 udp 4046 mountd
100003 3 udp 2049 nfs
100005 2 udp 4046 mountd
100005 1 udp 4046 mountd
100003 2 udp 2049 nfs
100000 2 tcp 111 rpcbind
100000 2 udp 111 rpcbind

测试机器mount,umount,reboot一切正常了。如果大家umount 不动不报错,那么可以试试-v参数,这个可以详细输出umount执行时候的信息。