Nginx Access Control Allow Origin

当静态资源文件和主站域名不一样时,字体文件之类的会爆如下错误: Font from origin 'http://www.typenter.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.kernelstudio.com' is therefore not allowed access. Nginx 解决办法: 将这段代码添加到 或者  中, 域名也可以进行通配 

XenServer error This operation cannot be performed because the specified virtual disk could not be found

最近在XenServer里面创建虚拟机并安装好系统之后,重启老是出现这样的错误,以前也遇见过相同的错误,但都是重装来解决问题的,今天算是找到根源了,困扰了很久的一个问题,网上也没找到相应的解决办法.错误信息:

2014/5/5 11:22:21
Error: Starting VM '10.10.0.110-jmw-backend-windows-2008' - This operation cannot be performed because the specified virtual disk could not be found

MySQL alter语句用法

MySQL alter语句用法
1:删除列ALTER TABLE 【表名字】 DROP 【列名称】
2:增加列ALTER TABLE 【表名字】 ADD 【列名称】 INT NOT NULL COMMENT '注释说明' ......

MySQL 时间查询语句

SELECT date_sub(NOW(),interval 1 month) 上个月今天的当前时间
SELECT UNIX_TIMESTAMP(date_sub(NOW(),interval 1 month)) 上个月今天的当前时间(时间戳)......

Page 1 of 212

Archives

Categories

Recent Posts

Recent Comments

Tags