首页 > 其他分享 >acu rtty config

acu rtty config

时间:2023-07-17 12:24:42浏览次数:35  
标签:acu config rtty etc ACU 0.0 root option

acu rtty config

 

root@ACU:~# tree /etc/config/root/
/etc/config/root/
├── etc
│?? ├── config
│?? │?? └── rtty
│?? └── init.d
│??     └── rtty
└── usr
    ├── lib
    │?? ├── libev.so -> libev.so.4.0.0
    │?? ├── libev.so.4 -> libev.so.4.0.0
    │?? └── libev.so.4.0.0
    └── sbin
        ├── rtty
        └── tree

6 directories, 7 files
root@ACU:~# 
root@ACU:~# ls -alh /etc/rc.local 
-rwxr-xr-x    1 root     root         291 Jul 17 11:14 /etc/rc.local
root@ACU:~# 
root@ACU:~# cat /etc/rc.local 
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

[ -d "/etc/config/root" ] && cp -af /etc/config/root/* / && echo "copy file ..."
[ -f "/etc/init.d/rtty" ] && /etc/init.d/rtty start && echo "rtty start ..."

exit 0
root@ACU:~# 
root@ACU:~# route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.179.128.1    0.0.0.0         UG    0      0        0 br-lan3074
10.179.128.0    *               255.255.128.0   U     0      0        0 br-lan3074
192.168.0.0     *               255.255.255.0   U     0      0        0 br-lan3074
192.192.192.0   *               255.255.255.0   U     0      0        0 br-lan0
192.192.192.0   *               255.255.255.0   U     0      0        0 eth0
root@ACU:~# 
root@ACU:~# route -n | grep "0.0.0.0.*0.0.0.0" | awk '{print $8}'
br-lan3074
root@ACU:~# 
root@ACU:~# uci set rtty.@rtty[0].ifname="$(route -n | grep "0.0.0.0.*0.0.0.0" | awk '{print $8}')"
root@ACU:~# 
root@ACU:~# uci set rtty.@rtty[0].id="WH_SJWX_ditel_test001"
root@ACU:~# 
root@ACU:~# uci commit rtty
root@ACU:~# 
root@ACU:~# cat /etc/config/rtty

config rtty
	option ifname      'br-lan3074'
	option id          'WH_SJWX_ditel_test001'
#	option description 'Description of my device'
	option host        '10.0.8.151'        # Server host
	option port        '5912'              # Server Port
#	option ssl         '1'                  # Whether to use ssl
#	option insecure    '1'                  # Allow insecure server connections when using SSL
#	option token       'your-token'         # generated by rttys
#	option username    'root'               # Skip a second login authentication. See man login(1) about the details
#	option verbose     '1'                  # verbose log

root@ACU:~# 
root@ACU:~# 
root@ACU:~# uci show rtty
rtty.@rtty[0]=rtty
rtty.@rtty[0].ifname='br-lan3074'
rtty.@rtty[0].host='10.0.8.151'
rtty.@rtty[0].port='5912'
rtty.@rtty[0].id='WH_SJWX_ditel_test001'
root@ACU:~# 
root@ACU:~# 
root@ACU:~# /etc/init.d/rtty stop
Killed
root@ACU:~# 
root@ACU:~# /etc/init.d/rtty start
rtty service has started.
root@ACU:~# 

 

rttys - http://10.0.8.151:5913/

 

=========== End

 

标签:acu,config,rtty,etc,ACU,0.0,root,option
From: https://www.cnblogs.com/lsgxeva/p/17559751.html

相关文章

  • PhpCms系统设置:config.inc.php文件配置说明_PHPCms教程
    config.inc.php(include/config.inc.php)文件包含了系统运行的核心配置,详细参数介绍如下://数据库配置信息define('DB_HOST', 'localhost'); //数据库服务器主机地址define('DB_USER', 'root'); //数据库帐号define('DB_PW', 'root'); //数据库密码define(&#......
  • Spartacus Product List Page ProductSearchPage Observable 对象的设计明细
    源代码如下:readonlymodel$:Observable<ProductSearchPage>=using(()=>this.searchByRouting$.subscribe(),()=>this.searchResults$).pipe(shareReplay({bufferSize:1,refCount:true}));上面这段代码是基于Angular框架和RxJS库的,RxJS是一个用于处理......
  • Spartacus search box 里显示的产品列表数据是从哪里进行搜索的
    如下图所示,selector:cx-searchboxComponent名称:Search-box.component.ts点击searchbar之后:添加css类:在断点停下来的地方,查看搜索结果列表:抛出ProductSearch的action:最后调用ProductSearchConnector进行搜索:dispatch到adapter:ProductListComponent......
  • 关于 Spartacus ProdutList Component Service model$ 的填充逻辑
    源代码:这段代码是Angular中的RxJS代码,主要是创建一个名为model$的Observable对象,这个对象的生成逻辑复杂一些,主要涉及using,subscribe,pipe,shareReplay等函数的使用。逐行解释如下:readonlymodel$:Observable<ProductSearchPage>=using(这一行定义了一个......
  • 什么是 SAP Spartacus 的 CMS Page Connector
    SAPSpartacus是一个开源的JavaScriptweb应用程序,它与SAPCommerceCloud的后端进行交互。这是一个基于Angular和RxJS的库,具有良好的扩展性,允许开发人员以模块化的方式创建和管理SAPCommerceCloud的用户界面。而CMSPageConnector是Spartacus提供的一种连接器,......
  • android gradle signingConfigs
    AndroidGradlesigningConfigs在Android开发中,签名是将应用程序与开发者进行关联的重要步骤。签名是一个数字证书,用于确保应用程序的完整性和真实性。Gradle是Android构建系统的一部分,可以通过Gradle配置文件来设置和管理应用程序的签名。SigningConfig对象在Gradle中,签名配置......
  • jsconfig.json文件作用
    没搞懂具体是个啥,目前知道有两个作用1. 别名路径提示{"compilerOptions":{"target":"esnext",//覆盖vscode的CheckJS选项"checkJs":false,"strict":true,"allowSyntheticDefaultImports":true,&......
  • 安装CentOS出现dracut-initqueue timeout
    报错信息如图: 解决方法:cddevls|grepsd在这里找到你U盘系统挂载点,看sd后面带数字的PS:或者先插着U盘执行下ls,再拔掉U盘执行ls,看上下两个显示对比缺少哪个,也是看带数字的,记下这个U盘名字,填写到下方【你U盘名字】>dracut:/#reboot执行重启命令重启之后,在ins......
  • Linux下chkconfig命令详解(service)
    Linux下chkconfig命令详解(service)一、释义chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。二、使用语法chkconfig[--add][--del][--list][系统服务]或chkconfig[--level......
  • @Configration
      OpenDeclarationorg.springframework.context.annotation.Configuration@Target(value={TYPE})@Retention(value=RUNTIME)@Documented@ComponentIndicatesthataclassdeclaresoneormore@BeanmethodsandmaybeprocessedbytheSpringcontainer......