命令如下 sudo /etc/init.d/dns-clean start
分类:Linux
mac apache 403问题
1.起因 安装和设置好对应的开发目录,提示Forbidden You don't have permission to access /on this server. 2.检查结果 mac apache默认的用户和用户组…
解决Temporary failure in name resolution
1) Make sure your DNS Resolver config file is writable: sudo chmod o+r /etc/resolv.conf 2) Temporarily change …
ubuntu boot清理
1.查看系统已经安装的内核版本 dpkg --get-selections |grep linux-image 2.查看系统当前版本 uname -a 3.删除其他的安装版本,保留当前版本 sudo apt purge …
Linux统计文件夹下的文件数目
Linux下有三个命令:ls、grep、wc。通过这三个命令的组合可以统计目录下文件及文件夹的个数。 统计当前目录下文件的个数(不包括目录) $ ls -l | grep "^-" | wc -l 统计当前目录下文件的个…
Ubuntu中禁PING
禁止 echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all 允许 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Liunx删除文件
删除空文件 find . -name 'file*' -size 0 -print0 | xargs -0 rm 查找并删除文件 find -name *.txt|xargs rm -rf find -iname *.t…
Ubuntu快捷安装nginx+mysql+php
Ubuntu快捷安装nginx+mysql+php sudo apt-get update sudo apt-get install nginx sudo apt-get install mysql-server sud…