Ubuntu 20.04 安装Orthanc

## 安装

复制代码
$ apt update
$ DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common wget curl nano gnupg apt-transport-https
$ apt install --upgrade ca-certificates
$ wget -qO - https://debian.orthanc-labs.com/archive.key | apt-key add -
$ apt-add-repository "deb https://debian.orthanc-labs.com/ `grep VERSION_CODENAME /etc/os-release | cut -d'=' -f 2` main"
$ apt clean && apt update
$ apt install orthanc-stone-webviewer

## 配置

创建自己的配置文件

复制代码
Orthanc --config=Configuration.json

改,vim Configuration.json

复制代码
"StorageDirectory" : "/var/lib/orthanc/OrthancStorage",
"IndexDirectory" : "/var/lib/orthanc/OrthancStorage",
"RemoteAccessAllowed" : true,
"AuthenticationEnabled" : true,
"RegisteredUsers" : {
	"admin":"123456"
},

测试启动

复制代码
Orthanc /etc/orthanc/Configuration.json

改systemct启动参数,/usr/lib/systemd/system/orthanc.service

复制代码
# ExecStart=/usr/sbin/Orthanc --logdir=/var/log/orthanc /etc/orthanc
ExecStart=/usr/sbin/Orthanc --logdir=/var/log/orthanc /etc/orthanc/Configuration.json

## 启动

复制代码
systemctl start orthanc.service

## 访问

http://localhost:8042/app/explorer.html

注意:如果是云服务器,记得防火墙和云安全组放开8042 4242等必要的端口。

相关推荐
探索云原生1 小时前
终于搞懂 Kueue:5 个核心对象一次讲透
linux·docker·ai·云原生·kubernetes
An_s2 小时前
机器学习python之识别图中物品信息
java·linux·开发语言
Championship.23.243 小时前
Linux 3.0 LVDS驱动开发详解
linux·运维·驱动开发·lvds
风向决定发型丶3 小时前
Shell中的特殊变量
linux·运维·bash
mounter6254 小时前
走向长时运行:引入协程(Coroutines),打破 BPF 程序的“一堂到底”限制
linux·ebpf·kernel
运维大师4 小时前
【Linux运维极简教程】05-软件包管理
linux·运维·服务器
六点_dn5 小时前
Linux学习笔记-shell运算符
linux·笔记·学习
hehelm5 小时前
IO 多路复用 — Reactor
linux·服务器·网络·数据库·c++
浅止菌6 小时前
嵌入式项目Makefile越写越乱?一张万能模板+5个技巧,告别重复劳动
linux
刘某的Cloud7 小时前
手工配置nginx的systemd服务
linux·运维·网络·nginx·systemd