Skip to content

Commit e43d849

Browse files
committed
12月5日部署版本
1 parent 9c074d7 commit e43d849

4 files changed

Lines changed: 27 additions & 7 deletions

File tree

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
- SipServlet
3232
- CentOS 7.2 (CentOS-7-x86_64-DVD-1511.iso)
3333
- GNOME Desktop(Compatibility Libraries & Development Tools)
34-
- XMS 3.3
35-
- 16104.rc1
34+
- XMS
35+
- 3.3.16104.rc1
3636

3737
安装 `lrzsz` 后可以使用 `rz` 命令进行文件上传
3838

@@ -267,8 +267,13 @@ keytool -genkeypair -alias myserver -keyalg RSA -keysize 1024 -keypass secret -v
267267

268268
修改启动脚本
269269

270-
```shell
270+
271+
```bash
271272
vim /root/mss-3.1.633-jboss-as-7.2.0.Final/bin/run.sh
273+
```
274+
在上面文件的最后增加以下内容,以后我们会用 `run.sh` 作为启动脚本
275+
276+
```bash
272277
./standalone.sh -Djavax.net.ssl.keyStorePassword=secret -Dgov.nist.javax.sip.TLS_CLIENT_AUTH_TYPE=Disabled -Djavax.net.ssl.keyStore=/root/mss-3.1.633-jboss-as-7.2.0.Final/standalone/configuration/ca/myserver.jks -Djavax.net.ssl.trustStorePassword=secret -Djavax.net.ssl.trustStore=/root/mss-3.1.633-jboss-as-7.2.0.Final/standalone/configuration/ca/myserver.jks
273278
```
274279

@@ -348,12 +353,27 @@ mediaserver.1.sip.port=5060
348353
```
349354

350355
### 启动
356+
#### 手动启动
351357

352358
```bash
353359
cd /root/mss-3.1.633-jboss-as-7.2.0.Final/bin
354360
./run.sh
355361
```
356362

363+
#### 开机自启动
364+
365+
`/root/mss-3.1.633-jboss-as-7.2.0.Final/bin/run.sh` 添加到以下文件的末尾处,完成后赋予执行权限
366+
367+
```bash
368+
vim /etc/rc.d/rc.local
369+
```
370+
371+
![](https://ws2.sinaimg.cn/large/006tNc79ly1flzbtb8k9qj30ge06ujsa.jpg)
372+
373+
```bash
374+
chmod +x /etc/rc.d/rc.local
375+
```
376+
357377
> 附:macOS 以忽略证书错误的形式启动 Chrome
358378
>
359379
> /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --ignore-certificate-errors

demo_war/demo_app.war

-77 Bytes
Binary file not shown.

sample-src/com/zczg/heart/HeartBeatClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void run() {
4747
SocketClient socketClient = new SocketClient(entry.getValue().getServerIp(), content);
4848
socketClient.send();
4949

50-
logger.info("给域[" + entry.getKey() + "]发送出了消息:" + content);
50+
logger.info(content + " --> [" + entry.getKey() + "]");
5151

5252
System.out.println();
5353
System.out.println();

sample-src/com/zczg/heart/HeartBeatServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void run() {
3737

3838
String content = new String(packet.getData(), 0, packet.getLength());
3939

40-
logger.info("收到消息:" + content);
40+
logger.info("Got:" + content);
4141

4242
String[] args = content.split("_");
4343
String contentType = args[0];
@@ -53,14 +53,14 @@ public void run() {
5353
MyTestApp.otherServerMap.get(remoteRealmId).getServerIp(), responseContent);
5454
socketClient.send();
5555

56-
logger.info("回复了:" + responseContent);
56+
logger.info("Response:" + responseContent);
5757

5858
} else if (MyTestApp.CONTENT_TYPE_BACK.equals(contentType)) {
5959

6060
// 对于BACK消息直接
6161
if (MyTestApp.content.get(remoteRealmId).equals(msg)) {
6262
MyTestApp.keepAliveMap.put(remoteRealmId, System.currentTimeMillis());
63-
logger.info("更新了时间戳:" + remoteRealmId);
63+
logger.info("Update:" + remoteRealmId);
6464
}
6565
}
6666

0 commit comments

Comments
 (0)