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等必要的端口。

相关推荐
不昀26 分钟前
网口Link Up后仍然掉线,怎样区分物理链路和数据通路问题?
linux·以太网
Lhan.zzZ1 小时前
Qt WebEngineView 在 Linux 上无法加载网页:从“看不见 HTML“到“禁用沙箱“
linux·c++·qt
Fcy6482 小时前
Linux下 多路转接select详解
linux·select·多路转接
无足鸟ICT3 小时前
【RHCA+】RPM包命名规则
linux·运维·服务器
Zucker n3 小时前
一款适合研究生科研工作安排的日历
linux·数据库·python
爱吃香菜的初学者3 小时前
十六.Linux——多线程(2)
linux·运维·开发语言
荒--5 小时前
Ubuntu软件包查询,弹框下载文件
运维·服务器·ubuntu
‎ദ്ദിᵔ.˛.ᵔ₎5 小时前
Linux:对有关 SIGCHLD 的深层理解
linux·运维·服务器
aichitang20245 小时前
QCU 2.0.0:补齐 Windows、Linux 与 GNOME Wayland
linux·运维·windows·ai·agent·ai编程