服务端编译需要go1.6+, 下载源码git clone https://github.com/inconshreveable/ngrok.git ngrok cd ngrok生成证书NGROK_DOMAIN="xxxx.com" openssl genrsa -out base.key 2048 openssl req -new -x509 -nodes -key base.key -days 10000 -subj "/CN=$NGROK_DOMAIN" -out base.pem openssl genrsa -out server.key 2048 openssl req -new -key server.key -subj "/CN=$NGROK_DOMAIN" -out server.csr openssl x509 -req -in server.csr -CA base.pem -CAkey base.key -CAcreateserial -days 10000 -out server.crt cp base.pem assets/client/tls/ngrokro
安装程序并添加用户 sudo yum install samba samba-client samba-common sudo smbpasswd -a user修改/etc/samba/smb.conf文件workgroup = WORKGROUP [share] path = /home/share browseable = yes writable = yes valid usrs = user create mask = 644 directory mask = 770启动服务加入开机启动# systemctl enable smb # systemctl enable nmb # systemctl start smb # systemctl start nmb # firewall-cmd --permanent --add-service=samba # firewall-cmd --reload 测试smbclient -L hostname/IP
molezz
记录下那些感想