XMPP-IOS instant messaging development environment, xmpp-ios instant messaging
1. Install MySQL
Sudo vi ~ /. Bash_profile
Enter I to enter the editing mode, and enter:
# mysqlalias mysql='/usr/local/mysql/bin/mysql'alias mysqladmin='/usr/local/mysql/bin/mysqladmin'# lsalias ls='ls -G'
Press ESC to exit the editing mode. Enter:
:wq
Save the modification content and exit and restart the terminal program.
3. Modify the MySQL administrator password
mysqladmin -u root password "123456"
Ii. Install MySQL management tools -- Mysql-workbench
1. Establish a database connection
1.1 create a new connection
Defaults write com. apple. finder AppleShowAllFiles Yes & killall Finder2. Servers
Server address: http://xmpp.org/xmpp-software/servers/
3. Select Openfire to download and install: http://www.igniterealtime.org/projects/openfire/index.jsp
3. 1. Install Openfire
Installation path:/usr/local/openfire/
User access permission for the folder where the installation is located
Save the database script in the/usr/local/openfire/resources/database folder.
3. 2. Modify/usr/local/openfire/directory permissions
Set language-> Set the server (pay attention to the domain name)-> Select the database connection method (standard database connection)-> Set database (for example)-> Set the administrator password (do not skip)-> Configuration complete and login
4. view the Openfire server port
5. Create user
6. Client Setup test Openfire Server