Office转换服务安装
### 安装rabbitmq-server
#### 安装
以下为 centos7.x , rabbitmq-server-3.7.9 的非Docker的安装步骤
1.安装 erlang
```shell
#rpm -ivh ./erlang-21.1.2-1.el7.centos.x86_64.rpm
```
2.安装 rabbitmq-server
```shell
#rpm -ivh ./rabbitmq-server-3.7.9-1.el7.noarch.rpm
```
3.启动 rabbitmq-server
```shell
#systemctl start rabbitmq-server
```
4.添加管理员账号
```shell
#rabbitmqctl add_user admin sdkoadmin
Adding user "admin" ...
#rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator] ...
```
5.将 admin用户添加到 vhost:/
```shell
# rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
Setting permissions for user "admin" in vhost "/" ...
```
7.下载安装rabbitmqadmin
```shell
# cd /usr/sbin/
# wget http://localhost:15672/cli/rabbitmqadmin
# chmod +x ./rabbitmqadmin
```
7.创建exchange和 queue
```shell
# rabbitmqadmin -u admin -p sdkoadmin -V / declare exchange name=sdkoExchange type=topic
exchange declared
# rabbitmqadmin -u admin -p sdkoadmin -V / declare queue name=sdkoQueue
queue declared
# rabbitmqadmin -u admin -p sdkoadmin -V / declare binding source=sdkoExchange destination=sdkoQueue routing_key=sdkoQueue
binding declared
```
#### 控制台
使用浏览器访问: http://{rabbitmq-server ip}:15672/,如看到下图的页面,即表示安装成功
![image.png](https://cos.easydoc.net/74177308/files/lgt5n663.png)
### “Office转PDF模块”用服务器配置
用户用户上传Office文件后自动转成PDF进行签署,对用户无感知。
- 支持windows服务器,建议使用window server2012及以上版本
- 2核心CPU,至少8G内存,硬盘(数据盘)空间不低于50G
- 机器须安装Office 2013及以上版本
#### 前置软件步骤
1. 安装 .netframework 4.8~
2. 安装并激活Offcie2016~
1. 设置word,excel的信任中心
关闭自动备份
![image.png](https://cos.easydoc.net/29764846/files/lgm7jsin.png)
信任位置加上转换⽬录
![image.png](https://cos.easydoc.net/29764846/files/lgm6s4so.png)
受信任的⽂档
![image.png](https://cos.easydoc.net/29764846/files/lgm6suuz.png)
加载项
![image.png](https://cos.easydoc.net/29764846/files/lgm6t8so.png)
ActiveX设置
![image.png](https://cos.easydoc.net/29764846/files/lgm6tm2f.png)
宏设置
![image.png](https://cos.easydoc.net/29764846/files/lgm6tywh.png)
受保护的视图
![image.png](https://cos.easydoc.net/29764846/files/lgm6uct5.png)
![image.png](https://cos.easydoc.net/29764846/files/lgm6urkd.png)
消息栏
![image.png](https://cos.easydoc.net/29764846/files/lgm6v9lh.png)
外部内容
![image.png](https://cos.easydoc.net/29764846/files/lgm6whiw.png)
3. [安装RabbitMQ](https://rabbitmq.com/download.html)
1. 运行初始化脚本
4. 将转换程序解压到桌面
5. 设置每日自动重启
![image.png](https://cos.easydoc.net/74177308/files/lgm7sq9w.png)
![image.png](https://cos.easydoc.net/74177308/files/lgm7t7zu.png)
![image.png](https://cos.easydoc.net/74177308/files/lgm7tj1e.png)
![image.png](https://cos.easydoc.net/74177308/files/lgm7txl8.png)