MySQL数据库索引查询优化的分享
这是一个在千万笔记录表中由于使用了索引导致了数据查找变慢的问题
驾轻快的车,走熟悉的路。比喻处世有经验,办起事来很容易。
这是一个在千万笔记录表中由于使用了索引导致了数据查找变慢的问题
Windows 8.1 和 Linux Mint 双系统后发现,使用 Linux 后再登陆 Windows 8.1 时系统显示时间不准确,比实际时间晚了8小时。
Linux和Windows的系统时间管理是不同的。Linux是以主板CMOS的时间作为格林威治标准时间,再按照系统设定的时区进行调整后才是系统时间。比如北京UTC时间为GMT+8,则Linux以CMOS时间加8作为系统时间。而Windows是直接以CMOS时间作为系统时间。
解决 Windows 和 Linux 时间不一致的方法有2种:
一种是设置 Windows 时间以UTC时间显示,另一种是设置 Linux 不启用UTC时间,而是直接以CMOS时间作为本地时间。
Window下的设置方法为:打开注册表在HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation中添加一项数据类型为DWORD,名称为RealTimeIsUniversal,值设为1。
Linux下的设置方法为:打开终端,修改 /etc/default/rcS,关闭UTC
/etc/default/rcS
找到UTC=no 这一项,将其改为UTC=yes,保存即可
以上两种方式,修改后重启电脑生效。
It turns out the solution is very simple. The xset command is the X server preferences command. It has a simple command to turn off the monitor:
$ xset dpms force off
and to turn the monitor back on:
$ xset dpms force on
You can also check the status of the X server settings by using:
$ xset -q
来源: How To Turn Off Your Monitor Via Command Line in Ubuntu | systemBash
单一用户
superuser ALL=(ALL) NOPASSWD:ALL
用户组
%supergroup ALL=(ALL) NOPASSWD:ALL
sudo rm /etc/udev/rules.d/70-persistent-net.rules
来源: Fix Missing eth0 When Cloning Ubuntu VMware Virtual Machines