美文网首页
CentOS部署Idempiere

CentOS部署Idempiere

作者: 钾肥尔德 | 来源:发表于2020-01-14 13:01 被阅读0次
    1. 安装postgresql-12
    • yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    • yum install postgresql12 postgresql12-server
    • /usr/pgsql-12/bin/postgresql-12-setup initdb
    • systemctl enable postgresql-12
    • systemctl start postgresql-12
    1. 修改用户postgres密码
    • passwd postgres
    1. 设置idempiere数据库
    su - postgres
    psql
    ALTER USER postgres WITH PASSWORD '你的postgres密码';
    CREATE USER adempiere WITH PASSWORD '你的密码';
    CREATE DATABASE idempiere ENCODING 'UTF8'  OWNER adempiere;
    GRANT ALL PRIVILEGES ON DATABASE idempiere to adempiere;
    
    1. 安装openjdk
    • yum install java-11-openjdk.x86_64 java-11-openjdk-devel.x86_64
    1. 设置JAVA环境变量
    export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.5.10-0.el7_7.x86_64
    export JRE_HOME=$JAVA_HOME/jre
    export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
    export PATH=/usr/local/python38/bin:/root/.local/bin:$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
    
    1. 修改/var/lib/pgsql/12/data/pg_hba.conf
    • local all all md5
    • host all all 127.0.0.1/32 md5
    • host all all ::1/128 md5
    • systemctl restart postgresql-12
    1. 解压idempiere至```/opt/idempiere-server
    2. ./console-setup.sh #./console-setup-alt.sh
    3. 解压./data/seed/Adempiere_pg.jar
    4. ./utils/RUN_ImportIdempiere.sh
    5. 运行idempiere
    • ./idempiere-server.sh
    1. 设置开机启动
    chmom +x /etc/rc.d/rc.local
    systemctl start rc-local
    systemctl enable rc-local
    echo    "/opt/idempiere-server/idempiere-server.sh"  >> /etc/rc.d/rc.local
    

    登录用户名及密码

    su postgres
    psql -d idempiere -U adempiere --password
    select name, password from ad_user;
    

    相关文章

      网友评论

          本文标题:CentOS部署Idempiere

          本文链接:https://www.haomeiwen.com/subject/zdzoactx.html