Monthly Archives: December 2018

Centos6.5安装kvm虚拟化

KVM简介: 1.KVM是开源软件,全称是kernel-based virtual machine(基于内核的虚拟机)。 2.是x86架构且硬件支持虚拟化技术(如 intel VT 或 AMD-V)的Linux全虚拟化解决方案。 3.KVM能在不改变linux或windows镜像的情况下同时运行多个虚拟机,(它的意思是多个虚拟机使用同一镜像)并为每一个虚拟机配置个性化硬件环境(网卡、磁盘、图形适配器……) 一、设置虚拟机支持虚拟化 二、先关闭防火墙和selinux [root@cany ~]<span class="hljs-comment"># service iptables stop    关闭防火墙</span> [root@cany ~]<span class="hljs-comment"># setenforce 0                关闭selinux(临时生效)</span> setenforce: SELinux <span class="hljs-keyword">is</span> disabled 永久生效方法 [root@cany ~]<span class="hljs-comment"># vim /etc/sysconfig/selinux   SELINUX=enforcing 改为disabled 并reboot生效</span> 三、检查服务器是否支持虚拟化 [root@cany ~]<span class="hljs-comment"># grep -E -o… Read More »

彻底关闭 WordPress 自动更新和后台更新检查

在当前主题的 functions.php 文件添加如下代码,就可以彻底关闭 WordPress 自动更新和后台更新检查,这样更新的时候,就要手动来更新了! add_filter(‘automatic_updater_disabled’, ‘__return_true’); // 彻底关闭自动更新 remove_action(‘init’, ‘wp_schedule_update_checks’); // 关闭更新检查定时作业 wp_clear_scheduled_hook(‘wp_version_check’); // 移除已有的版本检查定时作业 wp_clear_scheduled_hook(‘wp_update_plugins’); // 移除已有的插件更新定时作业 wp_clear_scheduled_hook(‘wp_update_themes’); // 移除已有的主题更新定时作业 wp_clear_scheduled_hook(‘wp_maybe_auto_update’); // 移除已有的自动更新定时作业 remove_action( ‘admin_init’, ‘_maybe_update_core’ ); // 移除后台内核更新检查 remove_action( ‘load-plugins.php’, ‘wp_update_plugins’ ); // 移除后台插件更新检查 remove_action( ‘load-update.php’, ‘wp_update_plugins’ ); remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ ); remove_action( ‘admin_init’, ‘_maybe_update_plugins’ ); remove_action( ‘load-themes.php’, ‘wp_update_themes’ ); // 移除后台主题更新检查… Read More »