Инструменты пользователя

Инструменты сайта


orthanc

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
orthanc [2019/12/26 15:31]
sector
orthanc [2019/12/27 01:55]
sector
Строка 73: Строка 73:
 {{:orthanc1.jpg?400|}} {{:orthanc1.jpg?400|}}
  
-Продолжение скоро. \\ +Подключение к СУБД:
-В плане подключить MariaDB и собирать все снимки с устройств централизованно. \\+
  
 +<code | ini>
 +apt-get install default-mysql-server default-mysql-clietn defaultlt-libmysqlclient-dev orthanc-mysql
 +</code>
  
 +Увеличиваем размер блока данных: 
 +
 +<code | ini>
 +mcedit my.cnf
 +
 +max_allowed_packet = 128M
 +
 +</code>
 +
 +создаем пользователя и бд, подключаемся:
 +
 +<code | ini>
 +mcedit /etc/orthanc/mysql.json
 +
 +cat /etc/orthanc/mysql.json 
 +{
 +  /**
 +   * Configuration to use MySQL or MariaDB instead of the default
 +   * SQLite back-end of Orthanc. You will have to install the
 +   * "orthanc-mysql" package to take advantage of this feature.
 +   **/
 +  "MySQL" : {
 +    // Enable the use of MySQL to store the Orthanc index?
 +    "EnableIndex" : true,
 +    
 +    // Enable the use of MySQL to store the DICOM files?
 +    "EnableStorage" : true,
 +    
 +    // Parameters of the MySLQ database
 +    "Host" : "localhost",
 +    "Port" : 3306,
 +    "Database" : "orthanc",
 +    "Username" : "orthanc",
 +    "UnixSocket" : "/var/run/mysqld/mysqld.sock",
 +    "Password" : "dDE4dkULEYrbBZxc",
 +    
 +    // Optional: Disable the locking of the MySQL database
 +    "Lock" : true
 +  }
 +}
 +
 +</code>
 +
 +перезапускаем:
 +
 +<code | ini>
 +services orthanc restart
 +</code>
orthanc.txt · Последнее изменение: 2022/05/27 02:34 — sector

Яндекс.Метрика