查看占用目录的用户和进程
fuser -cu /home
终止占用目录的用户和进程
fuser -ku /home
sudo pacman -S ntp
nptdate stdtime.gov.hk
此时时间已经是最准的了。如果要自动定时
sudo crontab -e root
把这行加到最后。
0 13 * * 1-5 ntpdate stdtime.gov.hk
从VirtualBox 2.1.0 开始支持直接从客户机来实现Host interface功能。只需要在rc.conf中 的MODULES中加入 vboxnetflt 之后在你虚拟机设置中选择Host Interface Networking。
测试方法:
modprobe vboxnetflt
设置->网络-》连接方式 : Host Interface
启动虚拟机
如果OK,在/etc/rc.conf 中加入 vboxnetflt 模块,重启计算机即可。
如何开启mysql 的侦听允许远程访问?
1.请在/etc/hosts.allow 添加以下行:
mysqld : ALL : ALLOW mysqld-max : ALL : ALLOW 2.需要编辑/etc/my.cnf
把skip-networking
注释掉: #skip-networking You can get the "error no. 2013: Lost Connection to mysql server during query
" message instantly whenever you try to connect to the MySQL daemon by TCP/IP. This is the TCP wrappers system (tcpd), which uses thehosts_access(5)
system to allow or disallow connections. # Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (via the "enable-named-pipe" option) will render mysqld useless!