diff --git a/Pasted image 20240126232942.png b/Pasted image 20240126232942.png new file mode 100644 index 0000000..a013979 Binary files /dev/null and b/Pasted image 20240126232942.png differ diff --git a/Pasted image 20240126233041.png b/Pasted image 20240126233041.png new file mode 100644 index 0000000..a22de55 Binary files /dev/null and b/Pasted image 20240126233041.png differ diff --git a/本机环境/MAC连接公司L2TP.md b/本机环境/MAC连接公司L2TP.md new file mode 100644 index 0000000..5c1557d --- /dev/null +++ b/本机环境/MAC连接公司L2TP.md @@ -0,0 +1,31 @@ +公司给的VPN没有共享密钥,如果你也没有,要在 /etc/ppp/ 下创建 options 文件: +```shell +sudo vim /etc/ppp/options +``` + +```text +plugin L2TP.ppp +l2tpnoipsec +``` + +加入路由配置 +如何获取网关地址 default 192.168.0.1 +![[Pasted image 20240126232942.png]] + +```shell +sudo route -n add -net 10.2.0.0 -netmask 255.255.255.0 192.168.0.1 +删除route +sudo route -v delete -net 10.2.0.0/24 -gateway 192.168.0.1 +``` + +修改网络顺序 (VPN最前面) +![[Pasted image 20240126233041.png]] + +必须的设置(添加后支持同时访问VPN和互联网) +```shell +sudo sysctl net.link.generic.system.hwcksum_tx=0 +sudo sysctl net.link.generic.system.hwcksum_rx=0 +# 默认 +sudo sysctl net.link.generic.system.hwcksum_tx=1 +sudo sysctl net.link.generic.system.hwcksum_rx=1 +``` \ No newline at end of file diff --git a/本机环境/开发环境.md b/本机环境/开发环境.md index 3e27367..b1ec48b 100644 --- a/本机环境/开发环境.md +++ b/本机环境/开发环境.md @@ -86,4 +86,9 @@ docker logs rabbitmq-server + opengauss gaussdb/openGauss@123 默认postgres 数据库 ```shell docker run --name opengauss --privileged=true -d -e GS_PASSWORD=openGauss@123 -p5432:5432 opengauss/opengauss:tagname +``` + ++ redis 无密码,支持持久化 +```shell +docker run --privileged=true -p 6379:6379 --name redis -v /Users/old-tom/data/redis/conf/redis.conf:/etc/redis/redis.conf -v /Users/old-tom/data/redis/data:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes ``` \ No newline at end of file