ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'your_password'; flush privileges;
给brew安装的 nginx 添加 nginx-rtmp-module 模块,并搭建rtmp流处理服务器. 环境基础信息如下: macOS Mojave 版本 10.14 nginx 版本 1.15.5 nginx-rtmp-module 版本 1.2.1 首先给 brew 安装的 nginx 添加 nginx-rtmp-module 模块 [crayon-651d3a7122867380367...
当静态资源文件和主站域名不一样时,字体文件之类的会爆如下错误: 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 ...
nginx禁止直接使用IP访问服务器:
1 2 3 4 5 6 7 8 9 10 11 |
server { listen 80 default; server_name _; server_name www.typenter.com typenter.com #除开允许的域名 return 500; } |
Apache防盗链:
在需要进行防盗链处理的目录,添加编辑 .htaccess 文件,文件内容为下 ... ...
最近在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
新装的系统需要做虚拟机,设置网卡为桥接模式重启网卡的时候报如下错误 ......
Nginx 将不带www的域名301重定向到带www的域名上,需要开启 rewrite 模块的支持
server { listen 80; server_name lastme.com; rewrite ^/(.*) https://www.lastme.com/$1 permanent; }
<VirtualHost *:80> DirectoryIndex index.php ServerName lastme.com RewriteEngine on RewriteCond %{HTTP_HOST} ^lastme.com [nc] RewriteRule ^(.*)$ http://www.lastme.com.com/$1 [r=301,nc] </VirtualHost>
MySQL alter语句用法
1:删除列ALTER TABLE 【表名字】 DROP 【列名称】
2:增加列ALTER TABLE 【表名字】 ADD 【列名称】 INT NOT NULL COMMENT '注释说明' ......