Reference URL:
Http://www.jianshu.com/p/f28c4193e8fc
http://cdn0.jianshu.io/p/729fa512d08d
1, OpenFire Download:
https://igniterealtime.org/downloads/(Download DMG)
2. mysql Download:
http://dev.mysql.com/downloads/mysql/
Myworkbench Download:
http://dev.mysql.com/downloads/workbench/
3. Configure MySQL
Record password when installing 2016-06-13t06:08:05.901993z 1 [Note] A temporary password is generated for [email protected]: 7vq&4xb3s& Amp;el
If you lose this password, please consult the sections how to Reset the Root password in the MySQL reference manual.
There will be problems when you get into success
To uninstall MySQL:
Http://stackoverflow.com/questions/1436425/how-do-you-uninstall-mysql-from-mac-os-x
ERROR 1820 (HY000): Must reset your password using ALTER USER statement before executing this statement.
Solve:
http://stackoverflow.com/questions/33467337/ reset-mysql-root-password-using-alter-user-statement-after-install-on-mac/33511149
Run Mysqlalias Mysql=/usr/local/mysql/bin/mysqlalias mysqladmin=/usr/local/mysql/bin/mysqladminmysql-u root-p
Create a good OpenFire database
Create a database openfire named OpenFire $create; show all database lists $show databases; open a database (such as database: OpenFire) $use openfire; show all tables in this library $ Show tables;
4, Configuration OpenFire
Terminal input
sudo chmod-r 777/usr/local/openfire/binsudo sucd/usr/local/openfire/binexport java_home= '/usr/libexec/java_home ' echo $JAVA _home/library/java/javavirtualmachines/jdk1.8.0_51.jdk/contents/home//You can view the version by $java-version. openfire.sh
Configuration after the terminal is set up:
Http://www.cnblogs.com/xiaodao/archive/2013/04/05/3000554.html
Address: http://localhost:9090/index.jsp
Jdbc:mysql://localhost:3306/openfire?useunicode=true&characterencoding=utf-8&charactersetresults=utf-8
Encounter problems
Uninstalling OpenFire
sudo rm-rf/library/preferencepanes/openfire.prefpane?sudo rm-rf/usr/local/openfire?sudo rm-rf/library/ Launchdaemons/org.jivesoftware.openfire.plist
OpenFire for Mac Environment setup