1.说明 rinetd 是一个轻量级的转发端口转发工具 2.应用场景 阿里云的 memcache 不支持外网的访问,但是在本地做自动化测试的时候需要登录 memcache 做一些操作; 因此在 box
1.说明
rinetd 是一个轻量级的转发端口转发工具
2.应用场景
阿里云的 memcache 不支持外网的访问,但是在本地做自动化测试的时候需要登录 memcache 做一些操作;
因此在 box 研测机上面做端口转发,将测试机的 11211 端口转发到阿里云 memcache 上面;
3.使用说明
3.1.安装
3.2.配置文件
cat /etc/rinetd .conf # bindadress bindport connectaddress connectport # 将 121.41.30.169 的 11211 端口转发到 10.159.72.1 的 11211 端口 121.41.30.169 11211 10.159.72.1 11211 # 将 121.41.30.169 的 6379 端口转发到 10.159.72.1 的 6379 端口 121.41.30.169 6379 100.99.228.40 6379 # logging information logfile /home/www/log/rinetd .log |
3.3.启动和关闭
# 启动 /etc/init .d /rinetd start # 关闭 /etc/init .d /rinetd stop # 重启 /etc/init .d /rinetd restart # 开机启动 sysv-rc-conf rinetd on # 关闭开机启动 sysv-rc-conf rinetd off |