Frp 使用NSSM配置为Windows服务
环境说明
windows 10
NSSM 2.24
Frp
步骤说明下载NSSM下载地址
解压
配置环境变量(可选)
根据平台架构,在 nssm.exe 所在目录下 shift+ 右键
打开 powershell
输入 nssm install frpc (这里frpc为我定义的服务名,这里看官随意)
配置
注:
Path 程序路径
Startup directory 选择 Path 会自动配置
Arguments 为启动参数,frps 配置为 -c frps.ini,frpc 配置为 -c frpc.ini
如图按需配置后
点击 Install service 即可
命令使用 nssm -h可以看到相应命令说明
常用命令显示安装服务GUI:nssm install [<servicename>]启动服务:nssm start [<servicename>]停止服务:nssm stop [<servicename>]重启服务: nssm restart [<servicename>]编辑服务: nssm edit [<ser ...
IntelliJ IDEA 自动生成serialVersionUID
环境说明
IntelliJ IDEA 2021.3.1
步骤说明参考文献
无题
环境说明步骤说明pom.xml<!-- mybatis plus --><dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.3.2</version></dependency><!-- mybatis plus generator --><dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId> <version>3.3.2</version></dependency><dependency> <groupId>org.apa ...
无题
环境说明
Win10
CentOS Linux release 8.5.2111
ActiveMQ 5.15.9
步骤说明Windows 安装ActiveMQCentos 安装ActiveMQ问题解决Illegal character in hostname at index 10执行
activemq start
报错如下
2022-05-13 14:19:36,777 | ERROR | Failed to start Apache ActiveMQ (localhost, ID:power_prod-26605-1652422776568-0:1) | org.apache.activemq.broker.BrokerService | mainjava.net.URISyntaxException: Illegal character in hostname at index 10: ws://power_prod:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
参考文献
Kraots consul 注册中心的使用
环境说明
windows
go version go1.17.6 windows/amd64
goland
步骤说明
参考文献
Consul Ubuntu 部署
环境说明
Ubuntu 20.04.3 LTS
Consul 1.11.4
步骤说明安装下载
Download Consul
wget https://releases.hashicorp.com/consul/1.11.4/consul_1.11.4_linux_amd64.zip
解压
unzip consul_1.11.4_linux_amd64.zip
复制到/usr/local/bin下
sudo mv consul /usr/local/bin/consul
验证
consul -v
# root @ axinblog in ~/software [16:57:08]$ consul -vConsul v1.11.4Revision 944e8ce6Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
配置Sever 模式,快捷配置,一般用于调试模式,不建议使用
...
无题
环境说明
truffle v5.5.2 15/03/2022 20:30.59 /home/mobaxterm truffle versionTruffle v5.5.2 (core: 5.5.2)Ganache v7.0.1Solidity v0.5.16 (solc-js)Node v14.18.3Web3.js v1.5.3
win10
步骤说明MetaMask 添加币安测试链&主键参考
JSON-RPC Endpoint
测试网网络名称( Network Name):Smart Chain - Testnet新的RPC URL( New RPC URL):https://data-seed-prebsc-1-s1.binance.org:8545/智能链ID(ChainID):97符号(Symbol):BNB区块浏览器URL(Block Explorer URL):https://testnet.bscscan.com主网网络名称( Network Name):Smart Chain新的RPC URL( New RPC URL):https: ...
LNMP 环境下安装gmp扩展
前言起因是因我要安装
web3p/ethereum-tx
执行
composer require web3p/ethereum-tx
报错内容如下
# root @ www.axinblog.com in /home/wwwroot/axinblog on git:develop x [19:08:55]$ composer require web3p/ethereum-txDo not run Composer as root/super user! See https://getcomposer.org/root for detailsContinue as root/super user [yes]? yesUsing version ^0.4.3 for web3p/ethereum-tx./composer.json has been updatedRunning composer update web3p/ethereum-txLoading composer repositories with package informationUpdating dependencie ...
Ubuntu 时间同步
环境说明
Ubuntu 21.10
问题说明有个接口报错,debug后是服务器时间跟接口服务器时间对不上,然该服走代理使用ntpdate时间同步报错
14 Mar 13:18:32 ntpdate[2101582]: no server suitable for synchronization found
关闭代理又正常,然服务代理不能关。
步骤说明ntpdate 时间同步安装
apt-get install ntpdate
与网络服务器同步时间ntpdate cn.pool.ntp.org
htpdate 时间同步因ntp同步失败,使用htpdate进行同步
安装
编译安装:
git clone https://github.com/iridium77/htpdatemake && make install
apt-get install htpdate
同步htpdate -t -s cn.pool.ntp.org
配置定时同步
crontab -e
0 3 * * * /usr/sbin/htpdate -t -s cn.pool.ntp.org
参数 ...
FastAdmin Bootstrap Table列表中显示二维码
步骤说明下载 QRCode.js 文件QRCode.js
访问不了可以点下面链接下载
qrcode.min.js
放到路径public/assets/js/qrcode.min.js
修改 require-backend.js目录 public/assets/js/require-backend.js
paths 增加 qrcode
paths: { 'qrcode':'qrcode.min',}
注:如果你是有使用CDN放前端静态资源,需要使用php think min -m backend -r all来重新打包核心静态文件,并上传更新你的CDN文件
控制器JS例如我的public/assets/js/backend/wallet.js
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree', 'qrcod ...