首页  一米OA Web端 回复

标题:centos7 使用一键安装shell脚本安装完后http://localhost:8080/oa/setup打不开[求助]
作者:liyulei
日期:15-10-24 14:08
内容:yum安装wget后运行的脚本,apache运行正常,mysql也运行正常,并且建了数据库,OA文件包也放在了/usr/tomca

回复:
解决了,是我防火墙没关!
liyulei

回复:

注意:
1.关闭防火墙  systemctl stop firewalld.service
2.下载wget yum install wget
3.系统必须为centos7
4.OA放置目录为 /usr/tomcat/webapps目录下


centos7 一键配置一米OA服务器
   给大家一个福利,使用CentOS7搭建服务器的,一键设置,免去众多代码,使用SH脚本安装,文件放在我的百度盘,链接: http://pan.baidu.com/s/1o64BF7O 密码: 3gq2
上传yimioa_setup.tar.gz至你的服务器
chmod +x yimioa_setup.tar.gz
tar -zxvf yimioa_setup.tar.gz
./yimioa_setup.sh
在input your tomcat manager name处键入你的tomcat管理员用户名
在input your tomcat manager password: 处键入你的tomcat管理员密码
mysql 安全设置的时候设置你的mysql 管理员密码
一路enter后
在input you mysql password 处键入你刚刚设置的mysql 密码配置oa数据库。
OK!搞定,
后面上传license.dll和网页进入OA/setup的方法不用我说.
阿里云CentOS7 64位测试成功,欢迎大家体验,不过仅28天哟!


liyulei

回复:
重新更正下安装步骤
安装步骤
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


liyulei


首页  一米OA Web端 回复