Build an XMPP environment for MAC and a MACXMPP Environment

Source: Internet
Author: User

Build an XMPP environment for MAC and a MACXMPP Environment

There are multiple methods to implement instant messaging. The following describes how to useXMPP.

XML Messages Presence Protocol scalable message processing Protocol simply put, it is based on the XML language's point-to-point instant communication Protocol principle: at least two clients and one server need several auxiliary tools to build an XMPP Environment
  • First, we need to build a server environment. It is not easy to install the Apache server. If you want to add MySQL, PHP, and Perl, it will be more difficult. XAMPP (Apache + MySQL + PHP + PERL) is a good auxiliary tool. TA is a powerful software package for building XAMPP software stations. The software package is named LAMPP. It can be installed and used in Windows, Linux, Solaris, Mac OS X, and other operating systems. It supports multiple languages. XAMPP is an Apache release that is easy to install and contains MySQL, PHP, and Perl. XAMPP is indeed very easy to install and use: you only need to download, decompress, and start it.
  • OpenFire is an open-source XMPP-based server. The following is the OpenFire installation and configuration guide. log on to 127.0.0.1: 9090.
1. Prepare the OpenFire installation package. 2. Double-click the installation package. (Note: In system preference settings-security and privacy-General settings, allow mac to install any source) 3. After the installation is complete, go to system preference settings, you will find that an OpenFire icon is added. 4. Click the icon to ensure that the Status is Running. 5. You can click Open Admin Console to enter or access it through 127.0.0.1: 9090. (Note: to avoid errors, use the Safari browser on the mac.) configure the web configuration page of The OpenFire server. 6. First, select the Chinese language. 7. Set the domain name on the server: local host name system preference settings-share can be viewed (generally continue to the next step by default) 8. Database settings use standard database 9, database settings-standard connection
  • Using MySQL database (storing chat Records)
  • Here we also need to modify the two database URL values [host name] = 127.0.0.1 and [database name]
  • The latter needs to first use phpMyAdmin to create a New database, log on to the XAMPP page through 127.0.0.1, click phpMyAdmin-New to import the table openfire_mysql. SQL
  • In this case, go to the OpenFire file to obtain the desired file. Open the Finder to go To the folder (command + shift + g) and input/usr to enter usr-local-openfire.
  • At this time, you will find that you cannot open the file because you do not have the permission. The solution is to right-click the file and choose "show Introduction"> "unlock"> "everyone"> "read and write"> "Lock ".
  • In this case, open openfire-resource-database and find the required openfire_mysql. SQL. You can choose to put it on the desktop to import it in phpMyAdmin.
  • Select the newly created database-import-Select File-import succeeded [database name] = name of the newly created database
  • Username = root
  • Password omitted
10. set initial settings for features 11. Set a new password (Note: skip this step to avoid forgetting the password later, if the password is set incorrectly or is not set, the password is the same as the account name admin) 12. After the installation is complete, log on to the openfire console and start the project. How can this problem be solved?

When you find that openfire on your computer cannot be started no matter whether you reinstall it or restart it, you can follow the terminal commands I wrote below to start your openfire. it's your system.
Generally, you can think of a problem with your openfire when you open this window. In a few cases, you can reinstall it to solve the problem.

If the problem persists after you reinstall it, try the following methods.

First open the terminal on your computer and then enter the following command

// Obtain permissions
Sudo chmod-R 777/usr/local/openfire/bin

Sudo su
Sh-3.2 # cd/usr/local/openfire/bin
Sh-3.2 # export JAVA_HOME = '/usr/libexec/java_home'
Sh-3.2 # echo $ JAVA_HOME
/Usr/libexec/java_home
Sh-3.2 # export JAVA_HOME = '/usr/libexec/java_home' // remember that this is not a single quotation mark, but a button on the left of the English number 1.

Sh-3.2 # echo $ JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home
Sh-3.2 # cd/usr/local/openfire/bin
Sh-3.2 #./openfire. sh
Openfire 3.10.2 [Aug 13,201 5 9:50:05 AM]
Admin console listening at http://niufangludemacbook-pro.local: 9090
Generally, you can open your openfire after entering these commands.

Brief Introduction: Fully uninstall OpenFire on MAC

Sudo rm-rf/Library/PreferencePanes/Openfire. prefPane
Sudo rm-rf/usr/local/openfire
Sudo rm-rf/Library/LaunchDaemons/org. jivesoftware. openfire. plist

Note: The first one will allow you to enter the administrator password. Even if you enter the password, it will not be displayed on the terminal. If you enter the password correctly, press enter to execute it.
After the three commands, openfire disappears completely.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.