Docker 进入redis控制台
docker exec -it xxx(ID) redis-cli| 命令 | 作用 |
|---|---|
| flushall | 清空所有数据库 |
| flushdb | 清空当前库 |
docker exec -it xxx(ID) redis-cli| 命令 | 作用 |
|---|---|
| flushall | 清空所有数据库 |
| flushdb | 清空当前库 |
shell 字符串处理相关: https://blog.csdn.net/lizhidefengzi/article/details/76762059
server {
listen 443 ssl; #SSL协议访问端口号为443。此处如未添加ssl,可能会造成Nginx无法启动。
server_name www.wuloves.com; #将localhost修改为您证书绑定的域名,例如:www.example.com。
root /web/www.wuloves.com;
index index.php index.html index.htm;
ssl_certificate /key/www.wuloves.com/www.wuloves.com.pem; #将domain name.pem替换成您证书的文件名。
ssl_certificate_key /key/www.wuloves.com/www.wuloves.com.key; #将domain name.key替换成您证书的密钥文件名。
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #使用此加密套件。
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #使用该协议进行配置。
ssl_prefer_server_ciphers on;
# location / {
# try_files $uri $uri/ /index.php?$query_string;
# }
# 将blog目录下的路由重写到blog/index.php
location /blog/ {
if (!-e $request_filename) {
rewrite ^/ /blog/index.php last;
}
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi.conf;
if (!-e $request_filename) {
rewrite ^/ /blog/index.php last;
}
}
access_log /web/logs/www.wuloves.com.success.ssl.log;
error_log /web/logs/www.wuloves.com.error.ssl.log;
}
server {
listen 80;
server_name www.wuloves.com;
rewrite ^(.*)$ https://$host$1 permanent;
access_log /dev/null;
error_log /dev/null;
} linux下mysql8.0重置密码的方法
过程是先设置无密码登录, 把root的密码设为空字符, 在取消无密码登录, 再登录root, 再执行重置密码动作无密码登录mysql
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables";
systemctl restart mysqld
mysql 回车即可
update mysql.user set authentication_string='' where User='root';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Abc123456!'; docker logs -f -t --tail=10 容器名docker logs -f -t --since="2017-05-31" --tail=10 容器名