2020年10月25日星期日

frps内网穿透

1、下载地址:https://github.com/fatedier/frp/releases

2、下载对应的安装包,解压,在服务器上直接配置frps.ini文件即可

[common]
bind_port = **** // 服务端与客户端对应的端口
vhost_http_port = **** //客户端http端口
token = **** //服务端与客户端密匙
dashboard_port = *** //frps服务端面板端口
dashboard_user = *** //frps服务端面板登陆用户名
dashboard_pwd = **** //frps服务端面板登陆密码

3、配置服务自启动,在下载安装包里有个sytemd文件夹,修改frps.services里对应的frps.ini文件路径,将frps.service拷贝到/etc/systemd/system文件夹中,运行systemctl enable frps systemctl start frps即可,这样服务端就配置完成了。

4、客户端也同样下载对应的版本,然后配置frpc.ini文件即可

[common]
server_addr = 服务器IP地址
server_port = ** //同服务器端一样
token = ** //同服务器端一样

[web]
type = http
local_port = 80
custom_domains = ***.shaogroup.com

[static_file]
type = tcp
remote_port = 8090
plugin = static_file
plugin_local_path = /mnt/movie 暴露的文件夹
plugin_strip_prefix = static
plugin_http_user = *** 访问的用户名
plugin_http_passwd = **** 访问的密码

2020年10月7日星期三

Linux VPS通过安装CurlFtpFS来挂载FTP,可用来备份文件

1、安装CurlFtpFS

Debian/Ubuntu系统

apt-get install curlftpfs -y

2、挂载FTP

创建目录,路径及名称自己定

mkdir /home/ftp

挂载FTP

curlftpfs ftp.yourserver.com /home/ftp -o user=username:password

ftp.yourserver.com #FTP地址
/home/ftp #本地目录
username #FTP用户名
password #FTP密码

输入df -h命令查看下是否挂载成功。
最后可以将文件上传至本地文件夹/home/ftp进行备份了。

如果在挂载的时候出现如下错误:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the ‘nonempty’ mount option
最简单的解决方法就是让挂载的本地目录变成空文件夹即可。

2020年10月3日星期六

bash: fdisk: command not found

You have to add /sbin to your PATH:

PATH=”/sbin:$PATH”
vagrant@stretch:~$ command -v fdisk /sbin/fdisk

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l There's a method to turn USB power on which is probably not persistent. I hope this will help you. echo 0 > /sys/c...