上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页
摘要: 安装并设置root密码 ## apt 安装 sudo apt install mariadb-server ## 开机启动,启动服务 sudo systemctl enable mariadb.service sudo systemctl start mariadb.service ## 允许数据库 阅读全文
posted @ 2022-02-21 13:43 LiuChengloong 阅读(77) 评论(0) 推荐(0)
摘要: Watchtower 是一款实现自动化更新 Docker 镜像与容器的实用工具.它监控着所有正在运行的容器以及相关镜像,当检测本地镜像与镜像仓库中的镜像有差异时,会自动拉取最新镜像并使用最初部署时的参数重新启动相应的容器. 每天凌晨1点更新(北京时间)并清理旧镜像 docker run -d \ - 阅读全文
posted @ 2022-02-14 16:43 LiuChengloong 阅读(1180) 评论(0) 推荐(0)
摘要: 异步任务工具类 一个异步任务工具类,可以使用 AsyncManager.me.XXX() 方法开启一个异步任务,底层可以使用 TimerTask 或者 CompletableFuture 或其他异步方式执行方法。 import cn.hutool.log.Log; import cn.hutool. 阅读全文
posted @ 2022-02-09 13:42 LiuChengloong 阅读(523) 评论(0) 推荐(0)
摘要: 在/usr/share/applications这个目录,其中存放的全部是所有用户可见的快捷方式。在该目录创建xxx.desktop文件即可。具体操作步骤为: 命令行操作内容: cd /usr/share/applications sudo gedit xxx.desktop 打开需要编辑的文本内容 阅读全文
posted @ 2022-01-26 10:53 LiuChengloong 阅读(361) 评论(0) 推荐(0)
摘要: JS 方法 <style> .no-print { cursor:pointer; } @media print { .no-print, .no-print * { display: none !important; } } </style> <script> function printHtml 阅读全文
posted @ 2022-01-25 09:22 LiuChengloong 阅读(82) 评论(0) 推荐(0)
摘要: 常用 shell 脚本记录 判断输入参数是否是合理参数 #!/bin/bash port= read -p "请输入 8184|8185: " port echo -e '\n' case $port in '8184' | '8185') echo $port;; *) echo "请输入 818 阅读全文
posted @ 2022-01-12 09:20 LiuChengloong 阅读(93) 评论(0) 推荐(0)
摘要: 安装 code-server github code-server 下载 deb 包 deb 安装包 sudo dpkg -i code-server.deb 修改 ~/.config/code-server 中 config.yaml 中 code-server 访问的 bind-addr pas 阅读全文
posted @ 2021-12-29 14:19 LiuChengloong 阅读(52) 评论(0) 推荐(0)
摘要: Mysql binlog 相关 MySQL 修改密码 sudo -s mysql use mysql ALTER USER root@localhost IDENTIFIED WITH caching_sha2_password BY '123456' MySQL 允许 root 远程登录 mysq 阅读全文
posted @ 2021-12-16 16:26 LiuChengloong 阅读(859) 评论(0) 推荐(0)
摘要: Linux关机,重启 # 关机 shutdown -h now # 重启 shutdown -r now 建立软连接 ln -s /usr/local/jdk1.8/ jdk sshkey # 创建sshkey ssh-keygen -t rsa -C your_email@example.com 阅读全文
posted @ 2021-12-15 10:22 LiuChengloong 阅读(68) 评论(0) 推荐(0)
摘要: 对项目进行性能分析,往往需要查看 CPU 耗时,了解瓶颈在哪里。火焰图(flame graph)是性能分析的利器。 我这里使用的是 async-profiler 这个开源项目,项目地址为: https://github.com/jvm-profiling-tools/async-profiler.g 阅读全文
posted @ 2021-12-08 14:22 LiuChengloong 阅读(395) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页