摘要:
先将文件复制到宿主机器上 docker cp [容器id]:docker容器中配置文件路径 主机路径 docker cp mysql:/etc/mysql/my.cnf /home/my.cnf 修改完配置文件后,再将文件copy回docker容器中 docker cp 主机文件路径 容器id:do 阅读全文
摘要:
方法一 1.查询Nginx的安装位置 whereis nginx 2.进入安装目录 一般默认安装位置是 /usr/local/nginx cd /usr/sbin 3.重启Nginx服务 ./nginx -s reload 方法二 systemctl start nginx.service 其他相关 阅读全文
摘要:
maven项目作为例子 第一步,引入最新的apache log4j 2.15.0的jar包 <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core --> <dependency> <groupId>or 阅读全文
摘要:
HTML5 QR Code scanner 阅读全文
摘要:
https://www.autohotkey.com/ 程序下载https://github.com/zszq/CapsLockHotkey/ 写好的程序,我就用这个改的,你可以改成你喜欢的用法 阅读全文
摘要:
替换字段中的换行符和回车符 REPLACE(REPLACE(filed,CHAR(10),''),CHAR(13),'') 查询字段中是否包含换行符和回车符 filed like '% \n\r %' 字段中追加换行符和回车符 update table set filed = concat(file 阅读全文
摘要:
编写脚本 vi /etc/init.d/nginx 修改/etc/init.d/nginx代码如下 #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 阅读全文
摘要:
数据库备份ssh文件 // 数据库备份命令 [root@localhost ]# mysqldump -uroot -p --default-character-set UTF8 --hex-blob --databases dbname > filename.sql 阅读全文
摘要:
重启[reboot]Linux系统后,docker服务及容器没有自动启动: 1.设置Docker服务自启动 systemctl enable docker.service 2.设置Docker的容器自启动 // 容器已经启动,设置自启 docker update --restart=always C 阅读全文
摘要:
1.还原某个文件到指定版本 // 查看filename在git上的历史版本 git log <filename> // 回退文件到commit版本 git checkout <commit version> <filename> // 编写备注,提交代码 git commit -m "comment 阅读全文