谈谈 PHP 协程的任务调度
难维护。帮助理解 yield 的测试代码:$ php -r 'yield;'; PHP Fatal error: The "yield" expression can only be used inside a function in Command line code on line 1 [ 2017-08-09T00:05:13+08:00 ] /, LMLPHP Fatal Error:The "...
解决 springboot Interceptor @Autowired null
gurerAdapter; @Configuration public class InterceptorConfig extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new WebIntercep...
How to Increase Number of Open Files Limit in Linux
you want to check. For example: # su marin $ ulimit -Sn 1024 $ ulimit -Hn 4096 How to Check System wide File Descriptors Limits in Linux If you are running a server, some of your applications may require...
Linode Maintance 前后 IO 对比以及深远影响
(running or powered off). These updates affect the underlying infrastructure that your Linode(s) reside on and will not affect the data stored within your Linode. To ensure your Linode's essential servic...
Nginx SSL 代理设置完整示例
域名填写和配置的虚拟主机名称不一致导致,解决办法就是 proxy_ssl_verify on 这一行注释掉就好了。参考官方文档https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-...
MySQL8 修改 root 密码
本修改用户密码的语句也不一样,MySQL8 修改用户密码若使用之前的语句直接报 SQL 错误!!!MySQL8 修改 root 账户密码。alter user 'root'@'localhost' identified with mysql_native_password by '123456'; alter user 'root'@'localhost' identified with cachin...
GIT之filter-branch修改作者信息
在团队水平不一致的时候,是个大坑。摘录一部分官方给出的解释:The --env-filter option can be used to modify committer and/or author identity. For example, if you found out that your commits have the wrong identity due to a misconfigure...
Linux Ubuntu 下配置虚拟主机并开启ReWrite教程
rv/www/lblog.lmlphp.com ServerName lblog.lmlphp.com <Directory /srv/www/lblog.lmlphp.com> AllowOverride All Order deny,allow Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/lblog.lmlphp.com-error....
解决Ubuntu cannot change locale (en_US.UTF-8)
E="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8 使用 local-gen 安装 en_US 的 locale,解决问题,如下。 root@may:/var/w...
GITHUB之GIT BASH使用教程
y exist生成 keys$ ssh-keygen -t rsa -C "[email protected]"# Creates a new ssh key, using the provided email as a label# Generating public/private rsa key pair.# Enter file in which to save the key (/c...