首页
统计
留言
Search
1
Konsole 和 oh-my-zsh 的配置与使用
1,428 阅读
2
docker启动报错
817 阅读
3
wsl2使用windows下v2ray的代理
752 阅读
4
go-stress-testing 压力测试
497 阅读
5
ssh-agent手动添加sshkey报错
493 阅读
全部
PHP
Linux
软路由
杂项
Sql
Go
登录
Search
标签搜索
kubuntu
docker
mysql
pgsql
git
csv
shell
wine
linux
oh-my-zsh
wps
gost
起名
redis
ip
crontab
mac
nginx
wss
docker-compose
JyPony
累计撰写
49
篇文章
累计收到
0
条评论
首页
栏目
全部
PHP
Linux
软路由
杂项
Sql
Go
页面
统计
留言
搜索到
49
篇与
的结果
2022-09-06
postgrsql update, 给指定字段批量加前缀
使用||连接update user_accounts set principal = ('2022-09-06-' || principal) where user_id NOT IN (select id from users) ;
2022年09月06日
257 阅读
0 评论
0 点赞
2022-08-18
docker下的端口映射到局域网
场景:docker创建一个redis集群,本地可通过192.168.88.11访问, 主机ip为192.168.8.127方法一:创建redis_cluster用户, 通过NCP连接远程主机运行ssh -NCP redis_cluster@192.168.8.127 -L 6380:192.168.88.11:6379 redis_cluster即可使用192.168.8.127:6380连接上redis集群方法二:#需要开启路由转发 echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf sysctl -p#查看容器id docker inspect [container_name] | grep IPAddress#添加转发 iptables -t nat -A DOCKER -p tcp --dport 6380 -j DNAT --to 192.168.88.11:6379 #192.168.88.11:6379是容器ip+要暴露的端口即可使用192.168.8.127:6380连接上redis集群
2022年08月18日
345 阅读
0 评论
0 点赞
2022-07-06
获取本机ip
浏览器访问https://ipinfo.io/ip服务器访问curl ipinfo.io/ip
2022年07月06日
291 阅读
0 评论
0 点赞
2022-06-28
vim /etc/crontab 跟 crontab -e的区别
crontab -ecrontab -e 是各种用户的配置, 编辑的时候会有语法错误提示vim /etc/crontabvim /etc/crontab 是只能root下配置, 定时命令还需要指定执行用户,如下21 0 * * * root "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null初次编辑之后需要指定执行文件crontab /etc/crontab
2022年06月28日
459 阅读
0 评论
0 点赞
2022-05-30
ubuntu有些软件无法使用搜狗输入法
例如谷歌浏览器无法使用中文输入法编辑运行文件sudo vim /usr/bin/google-chrome-stable在启动文件下增加如下两行代码export XMODIFIERS="@im=fcitx" export QT_IM_MODulE="fcitx"重启软件即可使用
2022年05月30日
451 阅读
0 评论
0 点赞
1
...
4
5
6
...
10