Spire.Cloud支持的Linux服务器系统包括CentOS和Ubuntu(推荐使用CentOS 7和Ubuntu 18版本),本教程主要介绍如何在CentOS 7系统上实现Spire.Cloud私有化部署。
详细步骤如下:
一、安装CentOS 7系统
首先,需要在服务器上安装CentOS 7系统,如果已安装,可跳过该步骤。
1、安装CentOS 7,进入以下界面,点击continue。
![6895a53efe5adfd3913ef744d32ebbc6.png](https://img-blog.csdnimg.cn/img_convert/6895a53efe5adfd3913ef744d32ebbc6.png)
2、选择最小安装。
![c78b13a75345d5e16ec8fb4a5cbe662b.png](https://img-blog.csdnimg.cn/img_convert/c78b13a75345d5e16ec8fb4a5cbe662b.png)
![2486d717b2b1a11a6a64216e79771b6e.png](https://img-blog.csdnimg.cn/img_convert/2486d717b2b1a11a6a64216e79771b6e.png)
3、设置分区,选择默认设置即可。
![18923aa310f612714e25eab78e4bd852.png](https://img-blog.csdnimg.cn/img_convert/18923aa310f612714e25eab78e4bd852.png)
4、开启网络。
![206e8cc97e38b55bd3e013873ea25b7e.png](https://img-blog.csdnimg.cn/img_convert/206e8cc97e38b55bd3e013873ea25b7e.png)
![aef12059fa6a864b6d0b9639ea06a14b.png](https://img-blog.csdnimg.cn/img_convert/aef12059fa6a864b6d0b9639ea06a14b.png)
5、配置完毕开始安装。
![ae803eba122be0502bd71a7314f9d103.png](https://img-blog.csdnimg.cn/img_convert/ae803eba122be0502bd71a7314f9d103.png)
6、设置root账户密码。
![953448889caed36832db731cbf59b784.png](https://img-blog.csdnimg.cn/img_convert/953448889caed36832db731cbf59b784.png)
![a1c428acf76370c09e300b56410d668e.png](https://img-blog.csdnimg.cn/img_convert/a1c428acf76370c09e300b56410d668e.png)
7、安装完毕后重启系统。
![b56fc358b7b1368e3ee7ed54814ce71a.png](https://img-blog.csdnimg.cn/img_convert/b56fc358b7b1368e3ee7ed54814ce71a.png)
二、系统配置
1、关闭防火墙。
1)首先查看防火墙的状态:
firewall-cmd –-state
2)关闭防火墙:
systemctl stop firewalld.service
3)再次查看状态,检查防火墙是否已经关闭:
firewall-cmd –-state
![be02b95c9ece3520aad329e94bd4ece0.png](https://img-blog.csdnimg.cn/img_convert/be02b95c9ece3520aad329e94bd4ece0.png)
2、配置静态IP地址。
1)使用命令:vi /etc/sysconfig/network-scripts/ifcfg-ens32(需要查看确认此信息),打开配置文件。
按Insert键开始编辑,将bootproto的值改为static,并在末尾加上IP地址,子网掩码,网关和DNS服务器。编辑完之后按ESC键退出编辑,然后再按冒号(:)键,输入指令wq保存退出。
![6d4e66292c75806ff30ada9ff0ad1593.png](https://img-blog.csdnimg.cn/img_convert/6d4e66292c75806ff30ada9ff0ad1593.png)
2)然后输入命令:systemctl restart network重启网络服务。
3)输入命令ip addr查看当前ip地址,确认是否修改成功。
![66c1d2759664c149b6acfa901a4c3bf3.png](https://img-blog.csdnimg.cn/img_convert/66c1d2759664c149b6acfa901a4c3bf3.png)
三、部署Spire.Cloud
1、请联系我们获取Spire.Cloud产品部署包。邮箱:sales@e-iceblue.com;电话:028-81705109。
2、将产品部署文件拷贝到CentOS 7系统中,可以借助winscp工具进行拷贝。具体步骤如下。
1)首先登陆。
![666caecc120a8f6ba9c75c320e9fb87f.png](https://img-blog.csdnimg.cn/img_convert/666caecc120a8f6ba9c75c320e9fb87f.png)
2)将文件直接拷贝进去,这里是拷贝到了/root/目录下。
![41d328da1d2d1e774d80bfec201b546d.png](https://img-blog.csdnimg.cn/img_convert/41d328da1d2d1e774d80bfec201b546d.png)
3、安装产品
在root账户权限下执行脚本install_centos7.sh。
执行命令: sh install_centos7.sh;也可以选择打包日志:sh install_centos7.sh >1.log
这里部署耗时较长(2h+),请耐心等待。
![debffb0061af1126c0f8d18bbda11f43.png](https://img-blog.csdnimg.cn/img_convert/debffb0061af1126c0f8d18bbda11f43.png)
4、应用license
1)将license文件拷贝到spire.cloud/service/ConverterService/bin/license目录下。
![80797d9ac66cde4d3e2c0cb6ce2f7355.png](https://img-blog.csdnimg.cn/img_convert/80797d9ac66cde4d3e2c0cb6ce2f7355.png)
2)切换到binding_license.sh所在目录(针对本次部署/root/),执行脚本binding_license.sh、sh binding_license.sh。
![dc3fa2a992588ba64acadfba7eedf206.png](https://img-blog.csdnimg.cn/img_convert/dc3fa2a992588ba64acadfba7eedf206.png)
注:私有化部署需要应用有效的license文件,否则在线编辑服务和WEB API服务将不能正常运行。
如果你需要临时license文件,请联系我们。邮箱:sales@e-iceblue.com;电话:028-81705109。
至此,Spire.Cloud已部署完成。现在你可以在本地服务器上使用Spire.Cloud在线编辑服务在线创建、编辑、保存和打印Office(Word/Excel/PowerPoint)文档;或使用WEB API,在应用程序中操作Office(Word/Excel/PowerPoint)及PDF文档,然后使用在线编辑查看结果文档。
现在测试在线编辑。在浏览器地址栏输入“[服务器ip]:3000”(针对本次部署输入192.168.0.108:3000),出现以下界面:
![cd96ba9e2efef42543ae9f42eabce868.png](https://img-blog.csdnimg.cn/img_convert/cd96ba9e2efef42543ae9f42eabce868.png)
点击Create Document,创建一个空白Word文档并编辑内容:
![fd73853587005b500ef711b2662bc918.png](https://img-blog.csdnimg.cn/img_convert/fd73853587005b500ef711b2662bc918.png)