CentOS 7上MySQL 5.7.18莫名其妙Crash原因分析及解决

一、Centos中查看nginx、apache、php、mysql配置文件路径

1、判断apache
首先执行命令找到httpd路径
ps aux | grep httpd
如httpd路径为 /usr/local/apache/bin/httpd
然后执行以下命令
/usr/local/apache/bin/httpd -V | grep “SERVER_CONFIG_FILE”
即可找到编译时加载的配置文件路径 httpd.conf
-V 参数可以看到编译时配置的参数

继续阅读“CentOS 7上MySQL 5.7.18莫名其妙Crash原因分析及解决”

除IE和EDGE外,Chrome Firefox 和 iOS系统不再信任StartSSL提供的免费证书……

来自StartSSL官方的回复如下:

SSL Certificates issued after 21.10.2016 are distrusted in Chrome 56+, Firefox 51+,safari and latest version of IOS system. All certificates are distrusted in chrome 57. Official document about distrust > https://blog.mozilla.org/security/2016/10/24/distrusting-new-wosign-and-startcom-certificates/
     We are working hard on remediation plan (https://bugzilla.mozilla.org/show_bug.cgi?id=1311832), and we are doing everything to regain trust ASAP.
We create new root certificate now, You need to wait the root certificate audit by the main browser so it can be trusted in the main browser,it will take several months.
As an interim solution, if you pass the class 3 validation or EV validation(with full payment) you can get 1 trusted certificate(issued by Camerfirma)  that can be trusted in all browser.

mysql_connect(): Headers and client library minor version mismatch. Headers:

mysql_connect(): Headers and client library minor version mismatch. Headers:这样的错误是由于高版本的MySQL,低版本的MySQL Client API引起的,我在CentOS 7上安装MySQL-Server的时候出现了这个错误,解决办法:

卸载PHP-mysql

  1. yum remove phpmysql y

安装php-mysqlnd

  1. yum install phpmysqlnd y     ->    yum install php70w-mysqlnd -y

重启httpd

  1. systemctl restart httpd.service
php7版本需要安装php70w-mysqlnd,而不是php-mysqlnd

js的浅克隆和深度克隆

听到这个名字的时候都被吓尿了。克隆听起来就很屌的样子。不过其实琢磨了一下根本没有什么好尿的——我特别讨厌一些人故作高深的摆出一副科学家的鸟样。

知乎上有一句话是这样的:

什么叫做理解了某一个概念?就是你可以用简单的语言把这个概念对你六岁的小侄女讲明白。

继续阅读“js的浅克隆和深度克隆”

30分钟掌握ES6/ES2015核心内容

ECMAScript 6(以下简称ES6)是JavaScript语言的下一代标准。因为当前版本的ES6是在2015年发布的,所以又称ECMAScript 2015。

也就是说,ES6就是ES2015。

虽然目前并不是所有浏览器都能兼容ES6全部特性,但越来越多的程序员在实际项目当中已经开始使用ES6了。所以就算你现在不打算使用ES6,但为了看懂别人的你也该懂点ES6的语法了…

继续阅读“30分钟掌握ES6/ES2015核心内容”