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 小时前
数字取证-内存取证(volatility)
java·linux·前端
欧先生^_^4 小时前
Linux内核可配置的参数
linux·服务器·数据库
海尔辛4 小时前
学习黑客5 分钟读懂Linux Permissions 101
linux·学习·安全
王RuaRua5 小时前
[数据结构]5. 栈-Stack
linux·数据结构·数据库·链表
曼岛_6 小时前
[架构之美]linux常见故障问题解决方案(十九)
linux·运维·架构
tan180°6 小时前
Linux进程信号处理(26)
linux·c++·vscode·后端·信号处理
大神的风范6 小时前
从0开始学linux韦东山教程第三章问题小结(4)
linux·服务器
sz66cm6 小时前
Linux基础 -- SSH 流式烧录与压缩传输笔记
linux·笔记·ssh
YOYO--小天7 小时前
RS485和RS232 通信配置
linux·嵌入式硬件
Lw老王要学习7 小时前
Linux数据库篇、第一章_02_MySQL的使用增删改查
linux·运维·数据库·mysql·云计算·it