您的位置:首页 > 运维架构 > Linux

linux questions

2015-10-20 11:14 555 查看
(1)ntpdate ntp.fudan.edu.cn提示no
server suitable for synchronization found

1)防火墙问题:udp的123端口

2)上层路由器设置问题

解决方法:

yum install -y rdate

rdate time-b.nist.gov

rdate -s time-b.nist.gov

(2)实时监控文件内容

tail -f filename

(3)source file,sh、. file.sh、bash file.sh、sh file.sh和./file.sh区别

A:source file.sh和. file.sh是在当前bash中读取file.sh内容执行,file.sh无需执行权限;

B:bash file.sh和sh
file.sh是当前bash的子shell中读取file.sh内容执行,当前bash是子shell的父亲,file.sh无需执行权限;

C:./file.sh需要执行权限;

(4)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: