在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
UI-SYSTEM-LIBUI-SYSTEM 的官方库项目 说明
如何使用
pub example/v1 :80 其中:80是开启服务的端口好,也可以指定发布地址,如127.0.0.1:80
服务运行方式UI-SYS 的服务节点运行方式,默认是以 开发(Development) 模式运行的,在此模式下,UISYS的WEB SERVER 会对扩展名为*.ui,*.es 两种文件进行实时解析,当我们要发布的时候,需要切换到静态发布模式,届时,所有的*.ui,.es都会变成.ui.hmtl这样的扩展名。如果想了解UISYS的*.ui,*.es扩展名文件的概念可以点击这里。静态模式命令如下: $> pub example/v1 :80 -s 命令的格式是在原有格式后加上 -s 即可(-s 代表 static)。 我们介绍下 UISYS 平台的基本命令,包括服务控制命令和项目参数设置命令。 命令解析服务控制命令1. help获取帮助信息 $> --help--------------------------------------------- lang Language Setting. COMMAND: lang <zh/cn> pub Publishing websites. COMMAND: pub <path> [HTTP Service IP:PORT] ls Show services list. COMMAND: ls add Add services and don't use command as services name. COMMAND: add <Service Name> [Project Path] [HTTP Service IP:PORT]... 2. version获取软件版本 $> version--------------------------------------------- AIroot UI-SYSTEM 0.9.5beta 3. pub发布指定目录为网站 $> pub example/v1--------------------------------------------- The [p0] setted in [E:\UISYS-RELEASE\example\v1]. The [p0] starting at [:80] WEB Server Started At: [:80]. Use protocol http 可以指定端口: $> pub example/v1 :8888--------------------------------------------- The [p0] setted in [E:\UISYS-RELEASE\example\v1]. The [p0] starting at [:8888] WEB Server Started At: [:8888]. Use protocol http 可以指定绝对路径: $> pub E:\UISYS-RELEASE\example\v1 :8888--------------------------------------------- The [p0] setted in [E:\UISYS-RELEASE-0.9.5BETA\example\v1]. The [p0] starting at [:8888] WEB Server Started At: [:8888]. Use protocol http 对于带空格的路径可以用引号括起来,如下: $> pub "E:\UISYS RELEASE\example\v1" :8888--------------------------------------------- The [p0] setted in [E:\UISYS RELEASE\example\v1\example\v1]. The [p0] starting at [:8888] WEB Server Started At: [:8888]. Use protocol http 可以指定https服务 $> pub "E:\UISYS-RELEASE\example\v1" https://:80--------------------------------------------- The [p0] starting at [https://:80] WEB Server Started At: [:80]. Use protocol https 可以全部制定: $> pub "E:\UISYS-RELEASE\example\v1" https://10.110.10.34:80--------------------------------------------- The [p0] starting at [https://10.110.10.34:80] WEB Server Started At: [10.110.10.34:80]. Use protocol https 4. ls列出当前存在的服务节点。 $> ls--------------------------------------------- 0. p1 Running 2019-07-10 23:43:28 D:\UISYS-RELEASE\example\v1 http://0.0.0.0:80/ 1. a2 Stopping 2019-07-10 23:43:43 D:\UISYS-RELEASE\example\v2 http:/// ----list over---- 5. addAdd services and don't use command as services name.
$> add a0 example/v1 :80--------------------------------------------- The [a0] setted in [E:\UISYS-RELEASE\example\v1]. The [a0] starting at [:80] WEB Server Started At: [:80]. Use protocol http 也可以只创建服务节点,但是不挂在项目: $> add a0--------------------------------------------- The [a0] added successfully. 如果需要挂在节点,可以通过 stp(set project)命令挂在项目目录: $> a0 stp example/v1--------------------------------------------- The [a0] setted in [C:\Users\Administrator\Desktop\UISYS-RELEASE-0.9.5BETA\example\v1]. 此时,我们只是挂在了项目,如果要运行需要使用 run 命令: $> run a0 :80--------------------------------------------- The [a0] starting at [:80] WEB Server Started At: [:80]. Use protocol http 6. runStart service.
$> run a0--------------------------------------------- The [a2] starting at [:80] WEB Server Started At: [:80]. Use protocol http 可以指定端口 $> run a0 :80--------------------------------------------- The [a2] starting at [:80] WEB Server Started At: [:80]. Use protocol http 可以指定IP $> run a0 10.110.10.34:80--------------------------------------------- The [a2] starting at [10.110.10.34:80] WEB Server Started At: [10.110.10.34:80]. Use protocol http 可以指定https服务 $> run a0 https://:80--------------------------------------------- The [a2] starting at [https://:80] WEB Server Started At: [:80]. Use protocol https 可以全部制定: $> run a0 https://10.110.10.34:80--------------------------------------------- The [a2] starting at [https://10.110.10.34:80] WEB Server Started At: [10.110.10.34:80]. Use protocol https 7. stop停止服务
$> stop a0--------------------------------------------- a0 Stop [a0] status: [:80]http: Server closed. [:80]JUS Server END. 8. rm移除服务
$> rm a0--------------------------------------------- [a0] remove success. status: [:80]http: Server closed. [:80]JUS Server END. 9. nat实现端口穿透功能。
$> nat -add desktop :12000 10.110.10.28:3389--------------------------------------------- The [desktop] starting at [:12000-->10.110.10.28:3389] ----list over---- 查看本平台用了多少个对外映射可以: $> nat--------------------------------------------- desktop [:12000-->127.0.0.1:3389] Running 0 ----list over---- 如果要删除这个映射服务可以用一下命令: $> nat -remove desktop--------------------------------------------->> accept tcp [::]:12000: use of closed network connectiondesktop Close havs error: close tcp [::]:12000: use of closed network connection ----list over---- 10. -c关闭控制台(Console)的输入功能。 $> -c--------------------------------------------- Console Input Method Unabled. 11. webc启动Web版的服务器命令窗口。该功能默认以https发布。
$> webc---------------------------------------------Web Control Server Started At: [:3690]. Use protocol https 如果自己设定服务端口,可以用: $> webc :10000---------------------------------------------Web Control Server Started At: [:10000]. Use protocol https 12. bat执行批处理命令,可以指定多个批处理文件。
例如,我们编写一个“config.conf”,如下: #发布example/v1工程到80端口pub example/v1 :80#发布example/v2工程到90端口pub example/v2 :90 然后保存到uisys.exe 可以访问的目录,例如,放到uisys目录下。然后再uisys控制台输入命令: $> bat config.conf---------------------------------------------#发布example/v1工程到80端口 The [p0] setted in [C:\UISYS-RELEASE\example\v1]. The [p0] starting at [:80]#发布example/v2工程到90端口 WEB Server Started At: [:80]. Use protocol http The [p1] setted in [C:\UISYS-RELEASE\example\v2]. The [p1] starting at [:90] WEB Server Started At: [:90]. Use protocol http bat 多个执行多个命令文件,如下: $> bat config.conf config1.conf "E:/uisys conf/config2.conf"--------------------------------------------- ... 13. statget application status,for example time and so on.获取平台的运行状态,用以显示当前平台的起始时间和运行时间。 $> stat--------------------------------------------- Date 2019-07-13 23:27:45 Now 2019-07-13 23:33:20 14. exitExit.退出服务 项目参数设置1. ctpcreate project dir.创建一个UI交互工程目录,ctp 是 create project 的缩写。COMMAND: ctp <Project Path>命令格式:ctp <项目路径> $> ctp D:\uisys\project01--------------------------------------------- create project [D:\uisys\project01]. The [a0] added successfully. The [a0] setted in [D:\uisys\project01]. The project mount at[a0] server. 2. stpset project dir. $> stp a0 D:\uisys\project01--------------------------------------------- The [a0] setted in [D:\uisys\project01]. 3. ctfcreate module file. 4. releaserelease project.发布工程为原生工程,以便其他服务器可以使用。 $> release a0 D:\uisys\project-release\--------------------------------------------- ----Release Complete---- 5. sendpush data to Service by websocket. 6. lwdisplay websocket list of Service 7. infoThe project infomation 8. setSet project attributes. 9. retRemove project attributes. |
请发表评论