修改了POS部署文档
diff --git a/package.json b/package.json
index 6753fd8..1132f1b 100644
--- a/package.json
+++ b/package.json
@@ -3,13 +3,14 @@
"version": "0.0.0",
"private": true,
"hexo": {
- "version": "3.2.0"
+ "version": "3.2.2"
},
"dependencies": {
- "hexo": "^3.2.0",
+ "hexo": "^3.2.2",
"hexo-excerpt": "^1.1.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
+ "hexo-generator-feed": "^1.2.0",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.2.0",
diff --git "a/source/_posts/\344\270\200\345\215\241\351\200\232\346\226\260\345\274\200\346\231\256POS\346\234\272\345\256\211\350\243\205\350\257\264\346\230\216.md" "b/source/_posts/\344\270\200\345\215\241\351\200\232\346\226\260\345\274\200\346\231\256POS\346\234\272\345\256\211\350\243\205\350\257\264\346\230\216.md"
index c1db807..ac39092 100644
--- "a/source/_posts/\344\270\200\345\215\241\351\200\232\346\226\260\345\274\200\346\231\256POS\346\234\272\345\256\211\350\243\205\350\257\264\346\230\216.md"
+++ "b/source/_posts/\344\270\200\345\215\241\351\200\232\346\226\260\345\274\200\346\231\256POS\346\234\272\345\256\211\350\243\205\350\257\264\346\230\216.md"
@@ -54,14 +54,58 @@
* 启动方法
+**Windows 平台**
在 Windows 下直接运行 newcapec-can-win.exe 既可。
+**Linux 平台**
+
+推荐使用 Centos 7 / RedHat 7 版本, 系统要求 64 位。
+
+* 直接运行方法
+
在 Linux 下运行 ./newcapec-can-linux 启动服务;如果需要在后台运行服务用以下命令:
~~~bash
$ nohup ./newcapec-can-linux &
~~~
+* systemd 方式运行
+
+在系统中建立 ecard 用户,并在创建前置工作目录
+
+```bash
+$ groupadd -g 10005 ecard
+$ useradd -u 10005 -g ecard ecard
+$ mkdir -p /opt/newcapec-pos-svr
+$ chown -R ecard.ecard /opt/newcapec-pos-svr
+```
+
+将在前置程序上传到 /opt/newcapec-pos-svr 工作目录下,并保证有执行权限。你可以通过手工运行前置程序生成默认的配置文件,配置文件名 **newcapec-can.cfg** 。
+
+拷贝 newcapecsvr.service 到 /etc/systemd/system/ 目录下, 用 root 用户执行以下配置命令。
+
+```bash
+$ systemctl daemon-realod
+$ systemctl enable newcapecsvr
+$ systemctl start newcapecsvr
+$ systemctl status newcapecsvr # 检查服务启动情况
+● newcapecsvr.service - Supwisdom Newcapec POS Server
+ Loaded: loaded (/etc/systemd/system/newcapecsvr.service; disabled; vendor preset: disabled)
+ Active: active (running) since 三 2016-08-03 16:43:28 CST; 21h ago
+ Main PID: 195463 (newcapec-can-li)
+ CGroup: /system.slice/newcapecsvr.service
+ └─195463 /opt/newcapec-pos-svr/newcapec-can-linux -config=/opt/newcapec-pos-svr/newcapec-can.cfg
+
+8月 03 16:43:28 yktdev2 systemd[1]: Started Supwisdom Newcapec POS Server.
+8月 03 16:43:28 yktdev2 systemd[1]: Starting Supwisdom Newcapec POS Server...
+8月 03 16:43:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:43:28+08:00" level=info msg="服务启动侦听端口,time=2016-08-03 16:43:28.46119326 +0800 CST"
+8月 03 16:43:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:43:28+08:00" level=info msg="newcapecCANPort=9876,newcapecTCPPort=9877,huiduoCANPort=9878"
+8月 03 16:43:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:43:28+08:00" level=info msg="Go version: go1.6.3"
+8月 03 16:43:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:43:28+08:00" level=debug msg="Info TotalAlloc=746280 Bytes, Free=606 Bytes"
+8月 03 16:44:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:44:28+08:00" level=info msg="System GC at 2016-08-03 16:44:28.461495496 +0800 CST"
+8月 03 16:44:28 yktdev2 newcapec-can-linux[195463]: time="2016-08-03T16:44:28+08:00" level=debug msg="Info TotalAlloc=755360 Bytes, Free=2086 Bytes"
+```
+
* 前置服务监控
前置服务可以通过监控命令获取运行状态报告,命令如下。该命令可以在 Window 电脑上运行, 运行的程序是 newcapec-can-win.exe。
@@ -102,7 +146,7 @@
> 使用浏览器登录网关管理界面 http://192.168.1.250, 默认用户名密码都是 admin。 登录成功后在菜单中选择“网络参数” => "LAN 配置“,在以下界面中输入新的网络地址。
-
+
* 远程连接
@@ -182,3 +226,5 @@
#/home/bin/dtg &
cd /home/bin && ./can_gateway &
```
+
+