- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
使用
# 使用
# 启动
sh frps.sh start
sh frps.sh stop
sh frps.sh restart
sh frps.sh status
frps.sh脚本 == frps.sh脚本作为服务进行运行
# 将frps.sh脚本作为服务进行运行
# 1. frps.sh的头3行注释添加下面3行
#!/bin/bash
#
#description: 内网穿透服务工具
#chkconfig:2345 99 99
#将frps.sh 移动到 /etc/init.d
cp frps脚本文件 /etc/init.d/
cd /etc/init.d/
#脚本后缀取消掉,好看点
mv frps.sh frps
#修改脚本权限
chmod 777 frps
#将frps脚本文件作为服务
chkconfig --add frps
#查看所有服务
chkconfig --list
#服务运行
service frps 脚本内的几个参数
frps.sh
#!/bin/bash
if [ ! $1 ]; then
echo '缺乏参数:restart|start|stop|status 中的任何一个'
exit 1
fi
getFrpPID () {
frpPID=$(netstat -nlp | grep frp | awk '{print $7}' | awk -F "/" '{print $1}' | awk '!a[$0]++{print $0}')
return $frpPID
}
# 停止Frp进程
stopFrp () {
frpPID=$(netstat -nlp | grep frp | awk '{print $7}' | awk -F "/" '{print $1}' | awk '!a[$0]++{print $0}')
if [ ! "$frpPID" ]; then
echo '当前无Frp内网穿透程序运行'
else
kill -9 "$frpPID"
echo "关闭Frp内网穿透进程【$frpPID】"
fi
}
# 启动Frp进程
startFrp () {
if [ ! -d "/www/server/frp/frp_0.38.0_linux_386" ]; then
echo '缺乏目录:/www/server/frp/frp_0.38.0_linux_386'
exit 1
fi
frpPID=$(netstat -nlp | grep frp | awk '{print $7}' | awk -F "/" '{print $1}' | awk '!a[$0]++{print $0}')
if [ ! $frpPID ]; then
# 进入frp目录
cd /www/server/frp/frp_0.38.0_linux_386
# 守护进程运行frp
nohup ./frps -c ./frps.ini > nohup.out 2>&1 &
echo '=====启动中,耐心等待====='
sleep 4s
statusFrp
else
echo "当前已存有Frp【$frpPID】内网穿透进程,如果想重启请使用restart参数"
fi
}
statusFrp () {
frpPID=$(netstat -nlp | grep frp | awk '{print $7}' | awk -F "/" '{print $1}' | awk '!a[$0]++{print $0}')
if [ ! $frpPID ]; then
echo '当前无Frp内网穿透程序运行'
else
echo "Frp内网穿透程序正在进行中:进程PID【$frpPID】"
fi
}
case $1 in
start)
startFrp
;;
stop)
stopFrp
;;
restart)
stopFrp
startFrp
;;
status)
statusFrp
;;
*)
echo '参数错误:请输入参数restart|start|stop|status 中的任何一个'
esac
我需要实现一个行为: 点击元素时 - 会发生一件事 但是当单击并按住超过一秒时,会发生其他情况(例如元素变得可拖动),然后第一个事件永远不会触发 我想我知道如何捕获点击并按住类型的事件,但如何区分第一
1 frp介绍 注意事项: 1)服务器端和内网机器端下载的版本要相同,否则可能会影响内网穿透 2)根据服务器系统选择合适的脚本 脚本主要分为服务端与客户端文件 1.外网服务器端用到的是Frps和Frp
1 frp介绍 注意事项: 1)服务器端和内网机器端下载的版本要相同,否则可能会影响内网穿透 2)根据服务器系统选择合适的脚本 脚本主要分为服务端与客户端文件 1.外网服务器端用到的是Frps和Frp
我目前正在阅读 WebSharper 的文档.在 the section about FRP , 它指出: Functional Reactive Programming (FRP) typicall
我目前正在研究我的下一个项目。这是在一个预先规划阶段,所以这个问题只是为了了解现有技术。 设置 我有一个具有多个输入和输出的有向无环图 (DAG),现在考虑人工神经元网络: 处理这种结构的常用方法是在
我可以构建一个PID controller在 Haskell FRP 库中 netwire使用为 Wire 提供的 ArrowLoop 实例中的 loop。 我还可以使用 switch 实现 Cont
我目前正在尝试了解箭头和 FRP,并且遇到了一个问题,我似乎无法将其映射到 FRP,即如何对道路网络进行建模。 我想我可以将道路网络建模为箭头,其中每个箭头代表一个路段。它在地点和时间接受汽车流,并生
我正在 Scala 中实现 FRP 框架,我似乎遇到了问题。出于某种想法,这个问题我决定限制我的框架的公共(public)接口(interface),以便只能在“现在”中评估行为,即: behavio
我一直在使用 Haskell(特别是 Yampa)中的 Arrowized FRP 库,但我不太清楚如何进行“连续”切换。我的意思是信号通过信号函数(下面的 sf),它本身就是一个信号(如图像的上半部
在经典 FRP 的最新实现中,例如 react 香蕉,有事件流和信号,它们是阶跃函数( react 香蕉称它们为行为,但它们仍然是阶跃函数)。我注意到 Elm 只使用信号,并没有区分信号和事件流。此外
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提出有关书籍、工具、软件库等建议的问题。您可以编辑问题,以便可以用事实和引用来回答它。 7年前关
我必须写一篇关于函数响应式(Reactive)编程 (FRP) 系统优化的论文。 这是我目前找到的引用资料。 使用广义代数数据类型进行函数式响应式(Reactive)编程的动态优化,Henrik Ni
我想在 Haskell 中学习 FRP,但是决定使用哪个库有点困难。许多尝试似乎已经失败,有些似乎又复活了(例如最近在 Yampa 上的事件)。 从我读到的内容来看,FRP 似乎有两种“类型”:一侧是
我必须写一篇关于函数响应式(Reactive)编程 (FRP) 系统优化的论文。 这是我目前找到的引用资料。 使用广义代数数据类型进行函数式响应式(Reactive)编程的动态优化,Henrik Ni
我刚开始使用 Bacon.js这真的很棒。尽管有时我确实很难找到正确的做事方式。例如,我想要一个带有可拖动部分的 Angular Directive(指令)。我不要脸的扒进别人的jsBin并尝试将该代
我正在使用BaconJS创建两个事件流,如下所示: # Wait for start of the module sStart = Bacon.fromCallback module.onStart.
有人说 FRP 是在不显式管理状态的情况下处理事件流。例如这个人: http://www.slideshare.net/borgesleonardo/functional-reactive-progr
我的问题是关于 FRP 中“状态机”对象的可变性。我正在评估Bacon.js's Observable.withStateMachine . 我的领域是交易机器人。我有一个“订单”的源事件流,它实际上
我正在开发一个使用 React 的项目,并且希望实现一种 FRP 形式来处理给定对象以任何给定形式更改时的事件。 我对 Bacon.js 和 RX.js 做了一些研究,但仍然有点不确定如何充分利用这些
今天,我读到了 FRP(函数式响应式(Reactive)编程)。但是,我不知道这在引擎本身中有多少适合。 看完Gerold Meisinger's article ,我的问题是,是否值得使用 FRP
我是一名优秀的程序员,十分优秀!