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

相关推荐
多弗朗皮卡丘39 分钟前
网络基础:数据链路层与其他协议或技术
linux·网络·tcp/ip
dingdingfish7 小时前
TLPI 第52章 读书笔记:POSIX Message Queues
linux·mq·ipc·posix·message·tlpi
wacsii8 小时前
【Linux进程(五)】进程控制全解析:从创建、终止、等待到程序替换
linux·服务器
七夜zippoe8 小时前
Nexent Linux 部署:用 deploy.sh
linux·服务器·docker·部署·ai智能体·nexent
去码头整点薯条988 小时前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬9 小时前
第一章 初识Linux shell
linux·运维·服务器
拂拉氏9 小时前
【知识讲解】 Linux线程中锁的认识
linux·互斥锁
无足鸟ICT10 小时前
【RHCA+】系统调优配置文件
linux·服务器
时间的拾荒人11 小时前
Shell 脚本核心语法详解(下篇):流程控制、函数、重定向与文件包含
linux·运维·服务器·bash·脚本编程