随笔分类 -  linux

1 2 3 4 5 ··· 7 下一页
摘要:一,安装 解压 # tar -zxvf redis-3.2.8.tar.gz 进入源码目录,编译: ]# cd redis-3.2.8 # make 安装: # make install PREFIX=/data/soft/redis-3.2.8 配置: 把源码目录中的redis.conf复制到安装 阅读全文
posted @ 2025-07-19 07:43 刘宏缔的架构森林 阅读(15) 评论(0) 推荐(0)
摘要:一,遇到的问题: 看到一个进程,想知道这个进程的工作目录,如下: # ps auxfww | grep redis root 22715 0.0 0.0 103252 828 pts/3 S+ 17:10 0:00 | \_ grep redis root 25816 0.0 0.7 455064 阅读全文
posted @ 2025-07-19 07:41 刘宏缔的架构森林 阅读(33) 评论(0) 推荐(0)
摘要:一,安装 用yum从命令行安装 # yum install memcached 查看版本: # memcached -h memcached 1.4.4 -p <num> TCP port number to listen on (default: 11211) .. 查看服务状态 # servic 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(7) 评论(0) 推荐(0)
摘要:一,配置: 动态ip 的网段 server 10.8.0.0 255.255.255.0 静态ip:放服务器,网段 route 10.8.1.0 255.255.255.0 给客户端推路由,对应静态ip的,否则客户端不能访问 push "route 10.8.1.0 255.255.255.0" c 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,问题 配置ifconfig-pool-persist ipp.txt后,不起作用,客户端的ip每次重启仍然会变化 二,查找原因 # grep persist /var/log/openvpn.log WARNING: --ifconfig-pool-persist will not work w 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,配置 在openvpn服务端所在机器上配置: # vi /etc/openvpn/server/server.conf 把下面一行取消注释 client-config-dir ccd 然后在/etc/openvpn下创建ccd目录 # mkdir ccd # cd ccd # vi client 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,安装 升级apt源 # apt update 用apt安装 # apt install openvpn 二,配置并连接 复制配置文件到client目录下: 进入目录 # cd /etc/openvpn/client/ 复制文件: # cp -axv /home/liuhongdi/work/cl 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,客户端机器:安装openvpn 用yum安装 # yum install openvpn 查看当前版本: # openvpn --version OpenVPN 2.5.11 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,官方文档地址: https://openvpn.net/community-resources/configuring-client-specific-rules-and-access-policies/ 二,可以使用的地址对: [ 1, 2] [ 5, 6] [ 9, 10] [ 13, 14 阅读全文
posted @ 2025-07-09 13:38 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,修改openvpn配置文件 # vi server.conf 修改这里指定端口: port 1194 例如:改为2194 然后重启openvpn服务 # systemctl restart openvpn-server@server.service 二,配置防火墙 1,本机器防火墙 查看open 阅读全文
posted @ 2025-07-05 08:51 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,格式: <ca> </ca> <cert> </cert> <key> </key> key-direction 1<tls-auth> </tls-auth> 二,看一个例子: 以上海大学的vpn为例:来源: https://vpn.shu.edu.cn/index/OpenVPNsysm/A 阅读全文
posted @ 2025-07-05 08:50 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,服务端配置 创建目录: # mkdir /etc/openvpn/auth 1,在server.conf追加: script-security 3 #允许使用自定义脚本 auth-user-pass-verify /etc/openvpn/auth/checkpsw.sh via-env #指定 阅读全文
posted @ 2025-07-05 08:47 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,说明 nc命令全称是netcat。其主要功能如下:1.测试udp端口的连通性(重点)。 nc -z -v -u 172.16.100.101 88262.测试tcp端口的连通性。 nc -z -v 172.16.100.101 22 参数 : -u Use UDP instead of the 阅读全文
posted @ 2025-07-05 08:45 刘宏缔的架构森林 阅读(220) 评论(0) 推荐(0)
摘要:一,命令: 在easyrsa目录下,创建一个名为client2的client # ./easyrsa build-client-full client2 nopass Using Easy-RSA 'vars' configuration: * /opt/easyrsa/pki/vars Notic 阅读全文
posted @ 2025-07-05 08:43 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,生成禁用的客户端列表 1,禁用一个用户 # ./easyrsa revoke client1 Using Easy-RSA 'vars' configuration: * /opt/easyrsa/pki/vars WARNING This process is destructive! The 阅读全文
posted @ 2025-07-05 08:38 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,现象 macos客户端,建立连接后一直不能ping通服务器的地址,即: 10.8.0.1 二,原因/解决: 客户端的opvn配置文件中有:comp-lzo一项,查看服务端openvpn/server/server.conf文件中,配置如下: # For compression compatibl 阅读全文
posted @ 2025-07-05 08:37 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,配置项的说明 1. 记录 OpenVPN 服务器当前连接状态 (status) 配置示例:status openvpn-status.log 作用: 指示 OpenVPN 服务器定期(默认每 60 秒)将所有当前连接的客户端的详细信息写入到指定文件(例如 openvpn-status.log)。 阅读全文
posted @ 2025-07-05 08:35 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,默认的配置 # 指定ca证书 ca ca.crt # 指定crt cert server.crt # 指定key key server.key # 指定Diffie hellman参数 dh dh2048.pem # 启用tls认证 tls-auth ta.key 0 # This file i 阅读全文
posted @ 2025-07-05 08:35 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要:一,安装环境 1,安装easy-rsa yum install easy-rsa 安装openvpn yum install openvpn 二,配置证书 创建证书目录 mkdir /opt/easyrsa 复制文件到目录下 cp -axv /usr/share/easyrsa/3.2.1/* /o 阅读全文
posted @ 2025-07-05 08:30 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要:一,报错信息 # systemctl start openvpn-server@.service Failed to start openvpn-server@.service: Unit name openvpn-server@.service is missing the instance na 阅读全文
posted @ 2025-06-28 13:05 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页