1.1 安装操作系统组件
用root运行命令进行配置
[root@centos ~]# dnf -y install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/e/epel-release-8-9.el8.noarch.rpm
[root@centos ~]# dnf -y install java-11-openjdk haproxy redis wget unzip varnish lsof apr tomcat-native
[root@centos ~]# dnf -y install langpacks-zh_CN
[root@centos ~]# systemctl disable firewalld
[root@centos ~]# systemctl enable haproxy redis varnish
[root@centos ~]# systemctl start haproxy redis varnish
选择Java 11作为默认JDK
[root@centos ~]# alternatives --config java
选择java11的序号
安装PostgreSQL 12
Centos 8 需要
[root@centos ~]# yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[root@centos ~]# dnf -qy module disable postgresql
[root@centos ~]# dnf -y install postgresql12 postgresql12-server
[root@centos ~]# /usr/pgsql-12/bin/postgresql-12-setup initdb
[root@centos ~]# systemctl enable --now postgresql-12
[root@centos ~]# systemctl status postgresql-12
1.2 配置环境
禁用selinux
[root@centos ~]# vi /etc/sysconfig/selinux
将文件中的“SELINUX=enforcing”改成“SELINUX=disabled”保存文件,然后重启,然后查看selinux状态。
[root@centos ~]# reboot
[root@centos ~]# sestatus
SELinux status: disabled
1.3 创建openurp用户
[root@centos ~]# useradd openurp
[root@centos ~]# passwd openurp
2.1 安装Beangle Sas Server(以下使用openurp操作)
[openurp@centos ~]$ wget http://beangle.github.io/sas/netinstall.sh
[openurp@centos ~]$ chmod +x ./netinstall.sh
[openurp@centos ~]$ ./netinstall.sh 0.8.1
之后在用户主目录会创建一个beangle-sas-server-0.8.1的目录。
2.2 配置sas
创建beangle-sas-server-0.8.1/conf/server.xml,编辑该文件,按照以下内容。