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 小时前
【Linux】进程状态全解析:从 R/S/D/T 到僵尸 / 孤儿进程
linux·人工智能·ai
序属秋秋秋2 小时前
《Linux系统编程之进程基础》【进程优先级】
linux·运维·c语言·c++·笔记·进程·优先级
加勒比之杰克2 小时前
【操作系统原理】Linux 进程控制
linux·运维·服务器·进程控制
XH-hui4 小时前
【打靶日记】TheHackerLabs 之 THLPWN
linux·网络安全·thehackerlabs·thl
抛砖者9 小时前
1、Ubuntu上MySQL安装,密码设置,远程访问,端口修改
mysql·ubuntu
小兔薯了10 小时前
11. Linux firewall 防火墙管理
linux·运维·服务器
Linux技术芯10 小时前
浅谈SCSI寻址机制与工作阶段深度解析?
linux
☼←安于亥时→❦12 小时前
Linux 系统日志‘/var/log/syslog‘ 和 ‘/var/log/messages‘ 详解
linux
袁气满满~_~12 小时前
Ubuntu下配置PyTorch
linux·pytorch·ubuntu
倦王13 小时前
Linux看ip,改用户名字加权限,在单独用户下设置miniconda
linux·服务器·tcp/ip