# pierced **Repository Path**: superwaterfox/pierced ## Basic Information - **Project Name**: pierced - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-23 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 外网穿透 cd mac_64 chmod 777 ./ding ./ding -config=./ding.cfg -subdomain=abcde 8080 命令参数说明: 参数 说明 -config 内网穿透的配置文件,按命令照示例固定为钉钉提供的./ding.cfg,无需修改 -subdomain 您需要使用的域名前缀,该前缀将会匹配到“vaiwan.com”前面,例如你的subdomain是abcde,启动工具后会将abcde.vaiwan.com映射到本地。 端口 您需要代理的本地服务http-server端口,例如你本地端口为8080等 ## 数据库穿透 启动工具,执行命令“./ding -config=./ding.cfg -proto=tcp start ssh”,以mac为例: cd mac_64 chmod 777 ./ding ./ding -proto=tcp -config=./ding.cfg start ssh 命令参数说明: 参数 说明 -config 内网穿透的配置文件,按命令照示例固定为钉钉提供的./ding.cfg,无需修改 -proto 启动的是TCP协议穿透 在数据库里面执行: GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY '123456'; FLUSH PRIVILEGES; 注意123456为数据库远程登录的密码,root为用户名 数据库连接: mysql -h vaiwan.com -u root -p -P 1234 1234是启动远程数据库连接默认的端口,可以在ding.cfg中进行修改