Drupal9下怎样安装Drush
在Drupal9目录下运行composer require drush/drush
drush会被安装到vendor/bin/drush
在Drupal9目录下运行composer require drush/drush
drush会被安装到vendor/bin/drush
可以开机启动,异常退出时能自动重启。
广州灵活就业人员就业登记办理指南(通过广州人社公众号办理)
广州市就业登记办理指南(PDF)
广州人力资源和社会保障局:http://rsj.gz.gov.cn/
dpkg-reconfigure tzdata
iframe里的cookie需要设置SameSite=None,详细原因解释见:https://medium.com/trabe/cookies-and-iframes-f7cca58b3b9e
另外查到,Same origin需要有相同的协议(http或https),SameSite则不需要。
Nginx 1.19.3可以用proxy_cookie_flags的办法解决cookie问题,参考:
https://serverfault.com/questions/1010706/setup-samesite-none-value-in-nginx-webserver
Drupal 7方案(https),在settings.php文件里添加下面逻辑:
完成了模块的英文到中文的翻译。由于Drupal翻译审核响应会很慢(可能几年都没人审核),目前只能手动导出,然后放到files/translations下。
UPDATE users_field_data SET pass='从一个已知密码的站点里复制uid=1的这个值' WHERE uid = 1;
DELETE FROM cache_entity WHERE cid = 'values:user:1';
过一段时间没有使用,我们应该brew update更新。
遇到问题,可以运行brew doctor检测。
brew update 或 install可能都很慢,可以在后面加--verbose --debug看更多信息,了解进度。
如有需要使用mirror,下面是中科大源的设置方法:
替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
(I assume you have already installed HomeBrew.)
1. Download source code
2. run ./confugre
$ ./configure
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
espeak-ng links are point to /usr/share,but home brew install those files in /usr/local/share。So we need to fix the link paths.
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltversion.m4
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltsugar.m4