Skip to content

Installera OpenMRS (Open Medical Record System) på Debian 11

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

I den här guiden går vi igenom hur du installerar OpenMRS, ett öppet medicinskt journalsystem, på Debian 11. Denna installation kan vara särskilt användbar för användare av en VPS-server.

Förutsättningar

  • Debian 11 installerat på din server.
  • Root-åtkomst eller sudo-rättigheter.
  • En aktiv internetanslutning.
  • Java Development Kit (JDK) installerat.
  • MySQL eller MariaDB installerat.
  • Apache Tomcat installerat.

Steg 1: Uppdatera systemet

Öppna terminalen och kör följande kommando för att uppdatera systempaketen:

sudo apt update && sudo apt upgrade -y

Steg 2: Installera JDK

Kör följande kommando för att installera OpenJDK:

sudo apt install openjdk-11-jdk -y

Steg 3: Installera MySQL/MariaDB

Kör följande kommando för att installera MariaDB:

sudo apt install mariadb-server -y

Anslut till MariaDB och skapa en databas för OpenMRS:

sudo mysql -u root -p
CREATE DATABASE openmrs;
CREATE USER 'openmrsuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON openmrs.* TO 'openmrsuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Steg 4: Installera Apache Tomcat

Kör följande kommando för att installera Tomcat:

sudo apt install tomcat9 tomcat9-admin -y

Steg 5: Ladda ner OpenMRS

Ladda ner den senaste versionen av OpenMRS:

Visual overview of Installera OpenMRS (Open Medical Record System) på Debian 11
Visual overview: Installera OpenMRS (Open Medical Record System) på Debian 11
wget https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_Platform_2.10.0.zip/download -O openmrs.zip

Extrahera zip-filen:

unzip openmrs.zip -d /var/lib/tomcat9/webapps/openmrs

Steg 6: Konfigurera OpenMRS

Navigera till OpenMRS-mappen och redigera konfigurationsfilen:

cd /var/lib/tomcat9/webapps/openmrs/WEB-INF
nano web.xml

Lägg till databasanslutningsinformation i konfigurationsfilen:

<resource-ref>
   <description>DB Connection</description>
   <res-ref-name>jdbc/openmrs</res-ref-name>
   <res-type&gt>javax.sql.DataSource</res-type>
   <res-link>jdbc/openmrs</res-link>
</resource-ref>

Steg 7: Starta Tomcat-servern

Kör följande kommando för att starta Tomcat:

sudo systemctl start tomcat9
sudo systemctl enable tomcat9

Steg 8: Åtkomst till OpenMRS från webbläsaren

Navigera till följande URL i din webbläsare för att slutföra installationen av OpenMRS:

http://your_server_ip:8080/openmrs

Avslutning

Ditt OpenMRS-system är nu installerat och klart för användning. Genom att använda denna metod kan du enkelt hantera ditt medicinska journalsystem från en VPS-server.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Key topics covered in Installera OpenMRS (Open Medical Record System) på Debian 11
Key topics covered in this NetCloud24 guide.

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Installera OpenMRS (Open Medical Record System) på Debian 11
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Installera OpenMRS (Open Medical Record System) på Debian 11
Installera OpenMRS (Open Medical Record System) på Debian 11
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.