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

相关推荐
T1mzhou8 小时前
ARM64 Linux 6.10内核启动流程7-ioremap和readl writel
linux·服务器·c语言
bwz999@88.com8 小时前
Ubuntu Server 24.04 设置中文
linux·运维·ubuntu
fly-979 小时前
Ubuntu FTP/SFTP 报错:找不到匹配的 hostkey 算法 完整解决
linux·ubuntu
Cx330❀9 小时前
【Linux网络】网络层协议 IP :从网络层原理到 Linux 内核源码
linux·运维·服务器·网络·tcp/ip·ai·ai编程
Gl�ria10 小时前
Linux 清理日志常用命令
linux·运维·服务器
天道jimmy10 小时前
VulnHub 系列:HA, Wordy
linux·服务器·web安全
君生我老11 小时前
Linux中调式器gbd/cgdb
linux
两斤牛肉一壶酒12 小时前
opencode 技能加载全挂背后,竟是不用系统的ripgrep
linux
j7~12 小时前
【Linux网络加餐(二)】《进程组,会话,控制终端,作业控制和守护进程》---详解
linux·运维·服务器·守护进程·会话·进程组·控制终端
天道jimmy12 小时前
VulnHub 系列:Prime,1
linux·运维·服务器