Установка Axelor: 
https://docs.axelor.com/abs/5.0/install/war/linux.htmlКод: Выделить всёsudo apt-get install openjdk-8-jdk
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
 Установка TomCat (
https://www.dmosk.ru/miniinstruktions.p ... tu#install)
Выбираем свежий пакет с расширением 
.tar.gz https://tomcat.apache.org/download-80.cgi
Скачиваем его  и разворачиваем:
Код: Выделить всёcd /tmp
curl -O https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.87/bin/apache-tomcat-8.5.87.tar.gz
sudo mkdir -p /opt/tomcat
sudo tar -xzf apache-tomcat-*.tar.gz -C /opt/tomcat --strip-components=1
 Корректируем разрешения:
Код: Выделить всёcd /opt/tomcat
sudo chgrp -R tomcat /opt/tomcat
sudo chmod -R g+r conf
sudo chmod g+x conf
sudo chown -R tomcat webapps/ work/ temp/ logs/
 После переустановки Axelor, так-же необходимо скорректировать разрешения, иначе будет ошибка в браузере типа:
Type Exception Report
Message java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:196)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
и при запуске католины тоже будет ошибка в логах или консоле запуска типа:
 ERROR 15570 --- [ost-startStop-1] o.apache.jasper.EmbeddedServletOptions   : The scratchDir you specified: [/opt/tomcat/work/Catalina/localhost/axelor-erp-latest] is unusable.
18-Mar-2023 13:06:45.330 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/axelor-erp-latest.war] has finished in [141,403]     ms
 иERROR 15570 --- [nio-8080-exec-3] org.apache.jasper.JspCompilationContext  : Unable to create output directory [/opt/tomcat/work/Catalina/localhost/axelor-erp-latest/org/apache/jsp/] req    uired for JSP compilation
Устанавливаем PostgreSQL
https://www.postgresql.org/download/Код: Выделить всё# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Update the package lists:
sudo apt-get update
# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql
 Разрешить на PostgreSQL аутентификацию по паролю: 
https://www.postgresql.org/docs/9.4/sta ... thods.htmlПравим файл 
/etc/postgresql/15/main/pg_hba.confПолучится примерно так:
Код: Выделить всё# "local" is for Unix domain socket connections only
#local   all             all                                     peer
local   all             all                                     trust
# IPv4 local connections:
#host    all             all             127.0.0.1/32            scram-sha-256
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
#host    all             all             ::1/128                 scram-sha-256
host    all             all             ::1/128                 md5
 Как только PostgreSQL настроен, создайте нового пользователя базы данных с паролем:
Код: Выделить всёsudo su postgres
createuser axelor --no-createdb --no-superuser
psql -c "alter user axelor with encrypted password 'axelor'";
 Создается новый пользователь PostgreSQL axelor с заданным паролем. 
Пароль, используемый здесь, предназначен только для демонстрации. Используйте свой собственный надежный пароль.Развертывание WARСкачиваем:
https://axelor.com/downloads/#installationsили: 
https://github.com/axelor/axelor-open-s ... v6.5.2.warsudo su postgres
createdb -O axelor axelor - создать БД "axelor " с пользователем "axelor "
 createuser axelor --no-createdb --no-superuser - создаем пользователя "axelor"
$ psql -c "alter user axelor with encrypted password 'axelor'"; - создаем пользователя "axelor" с паролем "'axelor'"
psql -Uaxelor -hlocalhost -daxelor - проверка коннекта к БД 
https://jeka.by/post/1104/postgresql-co ... -terminal/psql
\l - просмотр таблиц
\du - просмотр пользователей
\q - выйти
Проблемы подключения к PostgreeSQL: 
https://stackoverflow.com/questions/642 ... not-supporПерезапуск PostgreeSQL: /etc/init.d/postgresql restart
https://forum.axelor.com/t/email-configuration/1358/3При отладке рекомендуется запуск из консоли. В этом случае все ошибки будут наглядно видны:
Код: Выделить всёsudo -su tomcat
/opt/tomcat/bin/catalina.sh run