xmpp 环境配置

这个博客写的很详细http://www.cnblogs.com/dsxniubility/p/4304570.html,这里就是对他补充一下php

1.补充Apache的配置 http://www.cnblogs.com/dsxniubility/p/4294456.htmlhtml

 ①sudo cp php.ini.default php.ini 这个命令在 /etc 目录下执行shell

②下面这个问题apache

➜ apache2 sudo apachectl -k restart
AH00526: Syntax error on line 20 of /private/etc/apache2/extra/httpd-mpm.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration

解决:浏览器

第一步进入如下目录找到httpd-mpm.conf这个文件服务器

/private/etc/apache2/extra/httpd-mpm.confjsp

第二步在文件中找到LockFile "/private/var/log/apache2/accept.lock",用#注释掉以下测试

#LockFile "/private/var/log/apache2/accept.lock"this

第三步从新启动apache服务器spa

sudo apachectl -k restart

③Indexes 这个单词非10.10也要加上,我没加 打开localhost 出现You don't have permission to access / on this server

④把解压的phpMyAdmin 放在Sites目录下,才在浏览器 打开phpMyAdmin

 

另一个配置方法用到xampp更简单  http://www.jianshu.com/p/e6fa5d8ee366

继续写一下使用过程当中的问题:

问题①

这个问题,

A connection to the database could not be made. View the error message by opening the "/logs/error.log" log file , then go back to fix the problem.

 通常是host-name 和database-name没有写对,建议手动输入。

 

问题②

openfire HTTP ERROR 500  Problem accessing setup-profile-settings.jsp

解决:重启OpenFire,刷新页面或从新配置

 

问题③

装完openfire登陆管理控制台竟然提示:

Login failed:make sure your username and password are correct and that you’re an admin or moderator

解决:个人是重启openfire,而后刷新一下登陆成功了。有的说重启openfire,再用安装时指定的用户名密码登录便可,

默认是用户名:admin,密码:admin

 

而后是客户端的配置,能够用iMessage 和 小鸭子Adium 互相测试

小鸭子的配置很简单,也能够参考imessage ,注意后面的 @127.0.0.1

最后效果,

相关文章
相关标签/搜索