安装步骤
1.系统必须为centos7(我用的是最小化安装)
2.安装wget yum install wget
3.下载shell安装脚本
链接: http://pan.baidu.com/s/1o64BF7O 密码: 3gq2
4.上传yimioa_setup.tar.gz至你的服务器
5.在服务器目录设定权限 chmod +x yimioa_setup.tar.gz
6.解压缩 tar -zxvf yimioa_setup.tar.gz
7.运行脚本 ./yimioa_setup.sh
8.在input your tomcat manager name处键入你的tomcat管理员用户名
在input your tomcat manager password: 处键入你的tomcat管理员密码
9.mysql 安全设置的时候设置你的mysql 管理员密码
10.后面的提示输入y后 enter回车
11.在input you mysql password 处键入你刚刚设置的mysql 密码配置oa数据库。
12.提示安装完成
13.OA文件重命名为OA并放在 /usr/tomcat/webapps目录下
14.打开防火墙80端口:firewall-cmd --zone=public --add-port=80/tcp --permanent
15.修改tomcat端口号及默认主页为OA
修改文件输入命令vi /usr/tomcat/conf/server.xml
将
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
修改为
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
在最下面修改目录
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
下面添加如下命令
<Context path="" docBase="/usr/tomcat/webapps/oa" debug="0" reloadable="true" />
16.打开防火墙80端口:firewall-cmd --zone=public --add-port=80/tcp --permanent
17.重新启动 shutdown -r now
18.设置数据库,按照官方教程设置就行,注意端口号为3306 打开网页http://服务器IP/srtup
19.用服务器IP就能打开OA了默认密码是111111
20.如果觉得打开网页慢也可以试试端口转发命令但是貌似这个命令需要添加到开机启动,用这个命令需要将
server.xml端口号改回到8080
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080