找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7360|回复: 40

[N1盒子] 给N1 armbian安装ttyd命令行工具,通过手机,电脑,平板web浏览器随时随地访问管理

[复制链接]
发表于 2020-7-12 17:04 | 显示全部楼层 |阅读模式
ttyd 是一个 C 语言编写的命令行程序,可以把任意命令行程序分享到网页上操作,可以看做是个网页版的远程终端,支持 Linux、macOS、FreeBSD系统,还可以运行在 OpenWrt/LEDE 之类的嵌入式系统上。
项目地址 https://github.com/tsl0922/ttyd/releases

使用方法:
下载附件解压后用winscp连同ttyd目录上传到N1的/usr/local目录,并赋予可执行权限
chmod -R 755 /usr/local/ttyd

1.前台运行
执行 /usr/local/ttyd/ttyd -p 8082 login
其中8082为端口号,根据自己需求可以自定义,打开浏览器输入N1 IP:8082即可登录访问

2.后台运行方式+systemctl大法开机自启动
创建ttyd.service服务文件并写入以下内容(蓝色内容
vim /lib/systemd/system/ttyd.service

[Unit]
Description=ttyd
After=network.target


[Service]
ExecStart=/usr/local/ttyd/ttyd -p 8082 login


[Install]
WantedBy=multi-user.target

重载服务:      systemctl daemon-reload
启动ttyd服务:systemctl start ttyd.service
设置开机启动:systemctl enable ttyd.service
查看运行状态:systemctl status ttyd.service

附件:https://cloud.189.cn/t/me2qime6nAji(访问码:3xp3)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-7-12 17:31 | 显示全部楼层
这个jet一九九
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-12 17:32 | 显示全部楼层
学习一下,有点意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-12 19:12 来自手机 | 显示全部楼层
ssh客户端那么多,不香吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-12 19:20 | 显示全部楼层
看看看看111111
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-13 22:39 | 显示全部楼层
学习一下,有点意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-27 15:43 | 显示全部楼层
看帖不回者 么有小JJ.........
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-27 18:17 | 显示全部楼层
谢谢分享谢谢分享谢谢分享 楼主好人
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 20:16 来自手机 | 显示全部楼层
看看谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-26 17:33 | 显示全部楼层
armbian安装ttyd命令行工具
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-29 02:29 | 显示全部楼层
试试吧,其实没什么大用处
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-29 05:35 来自手机 | 显示全部楼层
大佬出手,教程我有
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-31 18:00 | 显示全部楼层
ttyd 是一个 C 语言编写的命令行程序,可以把任意命令行程序分享到网页上操作,可以看做是个网页版的远程终端,支持 Linux、macOS、FreeBSD系统,还可以运行在 OpenWrt/LEDE 之类的嵌入式系统上。 项目地址 https://github.com/tsl0922/ttyd/releases  使用方法: 下载附件解压后用winscp连同ttyd目录上传到N1的/usr/local目录,并赋予可执行权限 chmod -R 755 /usr/local/ttyd  1.前台运行 执行 /usr/local/ttyd/ttyd -p 8082 login 其中8082为端口号,根据自己需求可以自定义,打开浏览器输入N1 IP:8082即可登录访问  2.后台运行方式+systemctl大法开机自启动 创建ttyd.service服务文件并写入以下内容(蓝色内容) vim /lib/systemd/system/ttyd.service  [Unit] Description=ttyd After=network.target   [Service] ExecStart=/usr/local/ttyd/ttyd -p 8082 login   [Install] WantedBy=multi-user.target  重载服务:      systemctl daemon-reload 启动ttyd服务:systemctl start ttyd.service 设置开机启动:systemctl enable ttyd.service 查看运行状态:systemctl status ttyd.service
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-31 19:26 | 显示全部楼层
学习一下,有点意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-10-9 00:29 | 显示全部楼层
学习一下,有点意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 03:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表