Ubuntu想更改redis快照保存目录,打开/etc/redis/redis.conf,修改了dir为新的目录. 重启服务后,发现报错,保存数据失败.
进入redis-cli
config get dir save
提示ERR
Ubuntu想更改redis快照保存目录,打开/etc/redis/redis.conf,修改了dir为新的目录. 重启服务后,发现报错,保存数据失败.
进入redis-cli
config get dir save
提示ERR
使用nwjs 0.14.7 打包app, 基于windows XP 中文操作系统.
发现界面上的一些默认的提示都是英文的,例如输入框的必填提示,而不是使用系统对应的中文。
后来使用SDK打包发现没有这个问题,能够使用系统的语言进行对应提示。
后面发现了应用下面的locales目录,SDK下有各种语言的,而非SDK版本,只有en-US的版本。
将SDK里的locales的zh-CN文件拷到非SDK版本打出来的应用里,可以显示出对应的中文提示。
let gui = require('nw.gui');
let tray;
gui.App.clearCache();
Env: Windows 10 Mysql 5.7.x Jdk1.8.x Mysql Connector Java 6.0.5
ERROR:
mysql java.sql.SQLException: The server time zone value ????? is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
https://centos.pkgs.org/7/ghettoforge-x86_64/fcgiwrap-1.1.0-1.gf.el7.x86_64.rpm.html
wget http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/gf-release-7-10.gf.el7.noarch.rpm
rpm -Uvh gf-release-*.rpm
yum --enablerepo=gf install fcgiwrap
docker run --rm -e JAVA_OPTS='-agentlib:jdwp=transport=dt_socket,address=46029,suspend=n,server=y' -p 46029:46029 containername
注意: 需要把调试端口开放出来.
打开windows salver下的jenkins-slaver.xml,寻找下列段落:
...
<arguments>-Xrs -jar "%BASE%\slave.jar" ...
...
添加jvm properties,指定字符集:
-Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8
1. mysql create database use utf8mb4 collation utf8mb4_general_ci, and then import tables with charset=utf8mb4 with out setting collation; | |
2. the imported tables has use the default utf8mb4 collation utf8mb4_0900_ai_ci but not the database used; | |
solution: change database collation to utf8mb4_0900_ai_ci, solved the above problem. |