OpenFire
http://www.igniterealtime.org/downloads/
Apache-ant
http://ant.apache.org/bindownload.cgi
Shutting down the firewall
/etc/init.d/iptables stop
Update to GMT
/usr/sbin/ntpdate ntp.sjtu.edu.cn
Installing the JDK
Tar zxvf jdk-7u71-linux-x64.tar.gz
Mkdir/usr/java
MV jdk1.7.0_71/usr/java/jdk1.7.0
Vi/etc/profile
Last line add
#Java Environment
Export java_home=/usr/java/jdk1.7.0
Export classpath=.: $JAVA _home/jre/lib: $JAVA _home/lib: $JAVA _home/lib/tools.jar
Export path= $JAVA _home/bin: $PATH
Source/etc/profile
View version
Java-version
Installing Ant
Mkdir/usr/ant
Tar zxvf apache-ant-1.9.5-bin.tar.gz-c/usr/ant/
cd/usr/ant/
MV apache-ant-1.9.5 ant1.9.5
Vi/etc/profile
Last line add
#Ant Environment
Export ant_home=/usr/ant/ant1.9.5
Export path= $ANT _home/bin: $PATH
Source/etc/profile
View version
Ant-version
Installing OpenFire
RPM-IVH openfire-3.10.0-1.i386.rpm
Service OpenFire Start
I've installed MySQL 5.6
Edit the MySQL configuration file, set the default encoding to UTF8
Vi/usr/local/mysql/my.cnf
[Mysqld]
Basedir =/usr/local/mysql
DataDir =/data/3306/data
Port = 3306
server_id = 2
Socket =/data/3306/mysqld.sock
Pid-file =/usr/local/mysql/mysql.pid
max_allowed_packet=16m
Log-bin=mysql-bin
Sql_mode=no_engine_substitution,strict_trans_tables
init_connect= ' SET NAMES UTF8 '
Character-set-server=utf8
[Client]
Default-character-set=utf8
Restart database
/etc/init.d/mysqld restart
Enter the database
Mysql-u root-p
use the following command to view the default character set and see that it is already UTF8
mysql> showvariables like ' character_set_% ';
+--------------------------+----------------------------+
| variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | UTF8 |
| character_set_connection | UTF8 |
| Character_set_database | UTF8 |
| Character_set_filesystem | binary |
| Character_set_results | UTF8 |
| Character_set_server | UTF8 |
| Character_set_system | UTF8 |
| Character_sets_dir | /usr/share/mysql/charsets/|
+--------------------------+----------------------------+
8 rows in Set (0.00 sec)
Mysql> quit
cd/opt/openfire/resources/database/
Cp-p Openfire_mysql.sql Openfire_mysql.sql.bak
Edit SQL file to prevent adding Chinese user garbled problem
VI Openfire_mysql.sql
Note that the "default Charset=utf8" is appended to the end of each SQL statementthat establishes the table, and this process is cumbersome and requires careful attention.
For example:
CREATE TABLE Ofuser (
Username VARCHAR (+) not NULL,
Plainpassword VARCHAR (32),
Encryptedpassword VARCHAR (255),
Name VARCHAR (100),
Email VARCHAR (100),
CreationDate CHAR (a) is not NULL,
Modificationdate CHAR (a) is not NULL,
PRIMARY KEY (username),
INDEX Ofuser_cdate_idx (CreationDate)
)Defaultcharset=utf8;
At the end of the section, the Red field is added so that you can support Chinese.
# Finally, insert default table values.
Set names gb2312;
INSERT into Ofid (Idtype, id) VALUES (18,1);
INSERT into Ofid (Idtype, id) VALUES (19,1);
INSERT into Ofid (Idtype, id) VALUES (23,1);
INSERT into Ofid (Idtype, id) VALUES (26,2);
INSERT into Ofversion (name, version) VALUES (' OpenFire ', 21);
# Entry for Admin user
Set names gb2312;
INSERT into Ofuser (Username,plainpassword, name, email, creationdate, modificationdate)
VALUES (' admin ', ' admin ', ' Administrator ', ' [email protected] ', ' 0 ', ' 0 ');
# Entry for Default conference service
Set names gb2312;
INSERT into Ofmucservice (Serviceid,subdomain, Ishidden) VALUES (1, ' Conference ', 0);
Enter the database
Mysql-u Root
Create a database OpenFire
mysql> createdatabase OpenFire;
Query OK, 1 row affected (0.06 sec)
mysql> use openfire;
Database changed
Import SQL file
Mysql> Source/opt/openfire/resources/database/openfire_mysql.sql;
Create an Administrator account
mysql> Grant Allon openfire.* to [e-mail protected] "%" identified by ' admin ';
Mysql> quit
Visit openfire
http://192.168.0.112:9090/
Select Simplified Chinese
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/51/wKiom1V4_AnhEkRtAAFIqFUtwYA550.jpg "title=" Picture 1.png "alt=" Wkiom1v4_anhekrtaafiqfutwya550.jpg "/>
Choose Continue
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/4E/wKioL1V4_bvQK4tZAACkXDQz9Ws837.jpg "title=" Picture 2.png "alt=" Wkiol1v4_bvqk4tzaackxdqz9ws837.jpg "/>
Select a standard database
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/51/wKiom1V4_CDjBpxYAADWs0RUue4479.jpg "title=" Picture 3.png "alt=" Wkiom1v4_cdjbpxyaadws0ruue4479.jpg "/>
Select the MySQL database and enter the relevant data.
Pay special attention to the database URL, need to write wrong.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/4E/wKioL1V4_dHzFyyHAAHZ5hM83ro210.jpg "title=" Picture 4.png "alt=" Wkiol1v4_dhzfyyhaahz5hm83ro210.jpg "/>
Select Initial Configuration
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/51/wKiom1V4_Dfi6DTtAAEyHD0RjWA433.jpg "title=" Picture 5.png "alt=" Wkiom1v4_dfi6dttaaeyhd0rjwa433.jpg "/>
Enter related information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/52/wKiom1V5AEbBwbYuAAEBN4vXwug375.jpg "title=" Qq20150611112746.png "alt=" Wkiom1v5aebbwbyuaaebn4vxwug375.jpg "/>
Installation complete, click to enter
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/51/wKiom1V4_EvhL7AjAABvPXg0qwc512.jpg "title=" Picture 7.png "alt=" Wkiom1v4_evhl7ajaabvpxg0qwc512.jpg "/>
username is admin, password is new set password
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/4E/wKioL1V4_kTxMcctAACOqCwLPMI048.jpg "title=" Picture 8.png "alt=" Wkiol1v4_ktxmcctaacoqcwlpmi048.jpg "/>
The login interface is as follows
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/4E/wKioL1V4_lKQpgLrAAI9_iMhlNU420.jpg "title=" Picture 9.png "alt=" Wkiol1v4_lkqpglraai9_imhlnu420.jpg "/>
run Setup on the client Spark_2_7_0.exe
Click Next
Click Next
Click Next
Click Finish
Login User Admin
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/4E/wKioL1V4_qyhKYFlAAEnFJlMBFQ207.jpg "title=" Picture 10.png "alt=" Wkiol1v4_qyhkyflaaenfjlmbfq207.jpg "/>
The status is as follows
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/4E/wKioL1V4_ryzWmvdAAC5N8G2-Uw602.jpg "title=" Picture 11.png "alt=" Wkiol1v4_ryzwmvdaac5n8g2-uw602.jpg "/>
Then you can add the user on the server, the client login to the account on it!
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/4E/wKioL1V4_vizfNVGAAHM-xnKrRE176.jpg "title=" Qq20150611111508.png "alt=" wkiol1v4_vizfnvgaahm-xnkrre176.jpg "/> If you do not want to install the client
You can install a Web version of the client
Tar zxvf sparkweb_0_9_0.tar.gz
MV sparkweb/opt/
Publish with Nginx
cd/usr/local/nginx/conf/vhosts/
VI sparkweb.conf
server {
Listen 80;
server_name spark.xx.com;
root/opt/sparkweb/;
Index sparkweb.html index.html index.htm;
}
.. /.. /sbin/nginx-s Reload
Visit the webpage http://spark.xx.com/
Enter user name, server IP address, password, click Login
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/52/wKiom1V4_bHDW7yHAADS5eZLkPQ065.jpg "title=" Qq20150611111652.png "alt=" Wkiom1v4_bhdw7yhaads5ezlkpq065.jpg "/>
You can search for users
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/52/wKiom1V4_oLieAoIAABmWvQX_xE790.jpg "title=" Qq20150611112015.png "alt=" Wkiom1v4_olieaoiaabmwvqx_xe790.jpg "/>
Select Users, add Users
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/4E/wKioL1V5AEKi9QVDAAErjT-eclE141.jpg "title=" Qq20150611111954.png "alt=" Wkiol1v5aeki9qvdaaerjt-ecle141.jpg "/>
Send an offline message
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/52/wKiom1V4_u-R1IjtAADThmuxYDk366.jpg "title=" Qq20150611112203.png "alt=" Wkiom1v4_u-r1ijtaadthmuxydk366.jpg "/>
Test1 the user logs in, they see the message.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/52/wKiom1V4_w6TDJa5AAC-_2LJYeQ670.jpg "title=" Qq20150611112243.png "alt=" Wkiom1v4_w6tdja5aac-_2ljyeq670.jpg "/>
This article is from the "Falling Star" blog, make sure to keep this source http://xiao987334176.blog.51cto.com/2202382/1660745
Centos 6.5 x64 Installation OpenFire