自定义端口配置
---------服务器端配置-----------
设置配置文件frps.ini
```
[common]
bind_port = 7000
token = 12345678
```
cd 到目录
//开始运行服务
```
./frps -c frps.ini
```
//结束运行
```
ctrl+c
```
//创建服务器自动运行服务
```
vi /lib/systemd/system/frps.service
```
//打开后编辑 i--------------
```
[Unit]
Description=fraps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=/www/wwwroot/frp/frps -c /www/wwwroot/frp/frps.ini
[Install]
WantedBy=multi-user.target
```
//退出编辑 esc :wq------------------
//启动编辑后的服务
```
systemctl start frps
```
//自动启动服务
```
systemctl enable frps
```
//重启
```
reboot
```
//
查看启动服务进程
```
ps auxw
```
---------服务器端配置 end-----------
---------本地服务器端配置-----------
//设置配置文件frpc.ini
```
[common]
server_addr = 39.107.238.6
server_port = 7000
token = 12345678
[6002]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 6002
```
cd 到目录
//开始运行服务
```
./frpc -c frpc.ini
```
//创建服务器自动运行服务
```
vi /lib/systemd/system/frpc.service
```
//打开后编辑 i--------------
```
[Unit]
Description=fraps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=/www/wwwroot/frp/frpc -c /www/wwwroot/frp/frpc.ini
[Install]
WantedBy=multi-user.target
```
//退出编辑 esc :wq------------------
//启动编辑后的服务
```
systemctl start frps
```
//自动启动服务
```
systemctl enable frps
```
对接后服务器配置域名80端口,本地服务器配置域名+remote_port = 6002端口
========================================
80端口 7500
frps.in
```
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 8080
vhost_https_port = 8443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
enable_prometheus = true
log_file = ./frps.log
log_level = info
log_max_days = 3
disable_log_color = false
detailed_errors_to_client = true
authentication_method = token
authenticate_heartbeats = false
authenticate_new_work_conns = false
token = 12345678
max_pool_count = 5
max_ports_per_client = 0
tls_only = false
subdomain_host = szysqt.lnlongyuan.cn
tcp_mux = true
custom_404_page = /path/to/404.html
```
============
myfrpc.ini 80
```
[common]
server_addr = frp.szysqt.lnlongyuan.cn
server_port = 7000
token = 12345678
[web1]
type = http
local_ip = 127.0.0.1
local_port = 80
subdomain = web
[web2]
type = https
local_ip = 127.0.0.1
local_port = 443
subdomain = web
```
------------------------------------
//nginx frps 服务端
#80端口好用
```
server
{
listen 80;
server_name frp.szysqt.lnlongyuan.cn;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://$host/ http://$http_host/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
}
```
- HTML
- 讯飞插件
- Python
- 王者荣耀
- demo_cg.py
- demo_cg_TT.py
- img.py
- MySQL
- 清空表数据
- ID自增长重置
- 用户密码及权限操作
- 外键在数据库中的作用
- MySQL增删改查语句
- DDL-数据库操作
- DDL-表操作-查询
- DDL-表操作-创建
- DDL-表操作-数据类型
- DDL-表操作-修改
- DDL-表操作-删除
- DML-语句
- DML-添加数据
- DML-修改数据
- DML-删除数据
- DQL-语法
- DQL-基本查询
- DQL-条件查询
- DQL-聚合函数
- DQL-分组查询
- DQL-排序查询
- DQL-分页查询
- DCL-介绍
- DCL-管理用户
- DCL-权限控制
- 函数
- JS
- ajax
- ajax get请求
- ajax post提交
- ajax 同时上传文本和文件到数据库(inpt text和input file)
- 路径传值+接收解析
- js 本地sessionStorage
- js Excel导出.xls
- 二维码生成插件
- VUE-CLI4
- 安装手脚架及插件
- ECharts-数据可视化
- element-ui-时间戳
- qrcode二维码生成插件
- vuedraggable-拖拽组件
- vue-drag-resize-自由拖拽、缩放组件
- gitee配置
- src
- plugins
- element.js
- echartsMixin.js
- views
- login
- login.vue
- btn.vue
- home
- home.vue
- Welcome.vue
- user
- users.vue
- router
- main.js
- App.vue
- 引入语法
- 获取路径传值
- ajax请求
- token语法
- NPM更换镜像方案
- PHP
- PHP 微信网页登录
- PHP 判断函数
- PHP 获取微信公众号openid
- PHP 实现发送模板消息(微信公众号版)
- PHP 阳历阴历转换计算生肖闰年
- PHP 接口数组形式
- PHP 同文件夹下顺序命名
- PHP 输出文件
- PHP E-mail发送
- PHP cURL资源
- PHP 远程访问控制服务器
- PHP 8.0 开启mysqli扩展
- PHP 使用 OSS 批量上传图片
- PHP md5 加密与解密
- ThinkPHP
- PT6
- TP6安装多应用
- TP5
- view渲染模板常见语法
- Visual Studio Code
- 介绍
- 插件-eslint
- vs code插件
- VSCode添加自定义模板
- SFTP
- md格式的文档
- mermaid
- frp内网穿透
- 自定义端口
- ui-china.cn
- 常用软件
- 框架
- 服务器
- 微信小程序
- 云函数 Email
- 参数传递
- 其他
- VMware虚拟机centos7设置静态ip 连接外网