zql13242
文章 0
文章搜索
阿蛮君
有了AI以后,笔记似乎变得不那么重要......
文章数
531
评论数
1753
随机文章

Syncthing 同步文件问题记录
syncing: opening temp file: open xxx: permission denied 这种是经典的权限问题。可以将需要文件夹的权限修改为容器内用户可操作的权限。 或者以 root 用户运行容器: services: syncthing: image: syncthing/syncthing:latest container_name: syncthing ports: -...

WordPress 主题美化 – 文章页图片悬浮效果
要让图片悬浮,添加如下 css 即可。因为阿蛮君觉得图片具体文字太近,加了一个 margin 属性,不需要的可以去掉。 /*文章图片悬浮效果*/ .post-content-content img { transition: All 0.4s ease-in-out; -webkit-transition: All 0.4s ease-in-out; -moz-transition: All 0....

Linux 批量创建用户的 shell 脚本
首先需要将用户名保存在一个 txt 文件内,命名为 username.txt cat > username.txt <<EOF user1 user2 user3 EOF 然后编写 shell 脚本 create_users.sh #!/bin/bash PASSWORD="password" HOME_DIR="/home" SHELL=...

Linux 设置定时任务
Linux 设置定时任务 1. 安装 crontab yum -y install crontabs 2. 开启 crontab 服务 service crond start service crond start #启动服务 service crond stop #关闭服务 service crond restart #重启服务 service crond reload #重新载入配置 # 查看...

Java 的 volatile 关键字
volatile介绍 首先要知道的是并发编程的三个特性:可见性、有序性和原子性,其中 volatile 只能保证其中的可见性和有序性,并不能保证原子性。 可见性 可见性指一个线程对共享变量的修改能够被其他线程立即看到的特性。 多线程条件下,线程0和线程1同时读取了 flag 变量,但线程1将 flag 变量修改后,不会立即刷回主存(常说的内存),而是保存在自己的缓存中(CPU 缓存)。那么此时线程...
标签云
最新评论