Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4
Install Dspace 7.
x on Windows 10 Backend and Fontend
I.First Install BackEnd: 1. Install Jdk kit 11 javac -version -Create variable with name JAVA_HOME Control panel->System Security->system.. Set JAVA_HOME = C:\Program Files\Java\jdk-11.0.17 2. Install Git for Windows git --version 3. Install apache maven 3.6.3 create path mvn: C:\dspace_apps\apache-maven-3.6.3\bin mvn -v check version Ok. install ant new version (current 1.10.13) create path ant: C:\dspace_apps\apache-ant-1.10.13\bin ant -version 4. Install Postgresql version 14.7 user postgres pass: dspace OK. Configuration Postgresql: into path: C:\Program Files\PostgreSQL\14\data\ open file postgresql.conf. Check.. true listen_addresses = '*' open file pg_hba.conf add row: host dspace dspace 127.0.0.1 255.255.255.255 md5 Save and close. Check postgresql run or not run OK. 5. Install Solr 8.11.2 unzip solr-8.11.2.zip, copy and past root C:\ start solr and check solr active? open command promt cd / cd C:\solr-8.11.2\bin start solr -p 8983 open browser into address: http://localhost:8983 OK. 6. Install Apche tomcat9 User name: dspace Pwd: dspace Config Tomcat9 Modifications in [tomcat]/conf/server.xml Find two rows: connectionTimeout="20000" redirectPort="8443" /> and replace: minSpareThreads="25" enableLookups="false" redirectPort="8443" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/> Save and close Create variable with name: JAVA_OPTS and set JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8" Create variable TOMCAT_USER and set dspace TOMCAT_USER = dspace OK. Start tomcat9 service Check tomcat service active? open browse into: http://localhost:8080 OK. good active 7. Install Dspace 7.x BackEnd Create folder name C:\dspace - First: create user name dspace, create database dspace and set superuser for dspace user. OK. Open psql shell and login user postgres + Localhost: enter (default is localhost) + Database : postgres + Port: Enter (default is 5432) + User: postgres + Pwd: dspace while install postgresq create user dspace with password 'dspace'; create database dspace encoding 'UNICODE'; -Set user dspace with superuser grant all privileges on database dspace to dspace; -Create pgcrypto extension cho database dspace exit shell cho database current, open shell psql with login database: user: dspace vs pass: dspace + Localhost: enter (default is localhost) + Database : dspace + Port: Enter (default is 5432) + User: dspace + Pwd: dspace create extension pgcrypto; OK. =========== Download Dspace 7 version current dspace-7.5 and unzip, copy source paste into root C:\ - Configuration (local.cfg): Into C:\DSpace-dspace-7.5\dspace\config find and copy file local.cfg.EXAMPLE and rename to local.cfg Open file local.cfg and rename follow: Create folder with name dspace into root C:\ Edit: dspace.dir=C:/dspace # Name of the site dspace.name = DSpace Demo by Shusivn un-comment row: solr.server = http://localhost:8983/solr
# Database username and password
db.username = dspace db.password = dspace Save and close - Build Dspace 7.5 now check services solr, tomcat9 start? open command promt OK. cd C:\DSpace-dspace-7.5 mvn package Watting Dspace building.... Finish. cd C:\DSpace-dspace-7.5\dspace\target\dspace-installer ant fresh_install OK. cd / cd C:\dspace\bin\ dspace database migrate - Copy folder server from C:\dspace\webapps to paste C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps - Copy all folder from C:\dspace\solr to paste C:\solr-8.11.2\server\solr\ configsets - Restart solr solr restart -p 8983 - Restart Tomcat9 -Create dspace administrator acount cd C:\dspace/bin/dspace create-administrator Enter email:[email protected] Pass: Re pawd: yes -Connection server: Open Browse http://localhost:8080/server restart tomcat9 service. OK, Now. **** Install Dspace-dspace-angular Installing the Frontend (User Interface) Open command promt npm -v node --version * Install Yarn npm install --global yarn * Install pm2 npm install --global pm2 * Download Dspace user interface https://github.com/DSpace/dspace-angular/archive/refs/tags/dspace-7.5.zip unzip dspace-7.5.zip Copy folder unziped and paste C:\dspace-angular-dspace-7.5 cd C:\dspace-angular-dspace-7.5 yarn install waitting build yarn... OK finish. * Build/Compile yarn build:prod waiting building... OK. Finish * Configuration Create a file "config.prod.yml" in C:\dspace-angular-dspace-7.5\config. Copy file config.example.yml after rename to config.prod.yml Open file config.prod.yml and edit: rest: ssl: true host: api.mydspace.edu port: 443 nameSpace: /server ---> thành rest: ssl: false host: loacalhost port: 8080 nameSpace: /server Save and close - Check connection: yarn test:rest OK * Start up the User Interface NOTE #4: If you are using Windows, there are two other rules to keep in mind in this JSON configuration. First, all paths must include double backslashes (e.g. "C:\\dspace-ui-deploy"). Second, "cluster" mode is required. Here's an example configuration for Windows: - Create file dspace-angular.json in folder C:\dspace-angular-dspace-7.5 - Open file dspace-angular.json and add code: { "apps": [ { "name": "dspace-angular", "cwd": "C:\\dspace-angular-dspace-7.5", "script": "dist\\server\\main.js", "instances": "max", "exec_mode": "cluster", "env": { "NODE_ENV": "production" } } ] }
-Save and close
-Now, start the application using PM2 using the configuration file you created in the previous step pm2 start dspace-angular.json -Now, open browse check... http://localhost:4000 Yeah! Thank for watching