這個博客寫的很詳細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
最後效果,