@@ -32,7 +32,7 @@ composer install
3232详细部署说明
3333----
3434
35- __ 1.安装composer(php依赖包工具)__
35+ __ 1. 安装composer(php依赖包工具)__
3636
3737``` shell
3838curl -sS https://getcomposer.org/installer | php
@@ -42,15 +42,15 @@ mv composer.phar /usr/local/bin/composer
4242注意:如果未将php解释器程序设置为环境变量PATH中,需要设置。因为composer文件第一行为#!/usr/bin/env php,并不能修改。
4343更加详细的对composer说明:http://blog.csdn.net/zzulp/article/details/18981029
4444
45- __ 2.composer install__
45+ __ 2. composer install__
4646
4747切换到PHPWebIM项目目录,执行指令composer install,如很慢则
4848
4949``` shell
5050composer install --prefer-dist
5151```
5252
53- __ 3.Ningx配置__
53+ __ 3. Ningx配置__
5454
5555> 这里未使用swoole_framework提供的Web AppServer
5656> Apache请参照Nginx配置,自行修改实现
8181}
8282` ` `
8383
84- __4.修改配置PHPWebIM/config.php__
84+ __4. 修改配置PHPWebIM/config.php__
8585
8686` ` ` php
8787$config [' server' ] = array(
@@ -103,7 +103,7 @@ $config['server'] = array(
103103* webim.data_dir用于修改聊天记录存储的目录,必须有可写权限
104104* server.origin为Comet跨域设置,必须修改origin才可以支持IE等不支持WebSocket的浏览器
105105
106- __5.启动WebSocket服务器__
106+ __5. 启动WebSocket服务器__
107107
108108` ` ` shell
109109php PHPWebIM/webim_server.php
@@ -114,7 +114,7 @@ IE浏览器不支持WebSocket,需要使用FlashWebSocket模拟,请修改flas
114114php PHPWebIM/flash_policy.php
115115` ` `
116116
117- __6.绑定host与访问聊天窗口(可选)__
117+ __6. 绑定host与访问聊天窗口(可选)__
118118
119119如果URL直接使用IP:PORT,这里不需要设置。
120120
@@ -128,7 +128,7 @@ vi /etc/hosts
128128127.0.0.1 im.swoole.com
129129` ` `
130130
131- 用浏览器打开:http://im.swoole.com
131+ 用浏览器打开:http://im.swoole.com/
132132
133133快速了解项目架构
134134----
0 commit comments