1. Environment preparation
Centos6.5x64,
2, uninstall the system comes with the JDK
Rpm-qa|grep JDK
RPM-E--nodeps java*
3. Installing the JDK
RPM-IVH jdk-8u66-linux-x64.rpm
4, Vi/etc/profile
Enter o and add the following at the end:
java_home=/usr/java/jdk1.8.0 
jre_home=/usr/java/jdk1.8.0/jre
 
Make the environment variable effective immediately
$source/etc/profile
5. Test whether the installation was successful
Enter Java,java-version,javac in turn to see the output information, such as
$ java-version
Java version "1.8.0"
Java (TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot (TM) 64-bit Server VM (build 25.0-b70, Mixed mode)
[Email protected] java]#
6. Install MySQL
# yum-y Mysql-server Myql-devel
# Service Mysqld Restart #重启服务
# /usr/bin/mysqladmin-u root password root #设置密码root
#shez如果设置密码错误可参考 (MySQL setup password)
#chkconfig MySQL on #设置开机启动
7, OpenFire version compatible.
# yum install libstdc++.i686
8、安装openfire
#rpm -ivh
jdk-8u66-linux-x64.rpm
Preparing…
########################################### [100%]
1:openfire
########################################### [100%]
# service openfire start #开启服务
# chkconfig openfire on #设置开机启动
9、关闭防火墙
# service iptables stop
# chkconfig iptables off
10、http://127.0.0.1:9090 访问地址,选择语言。
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />
11、域名设置
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />650) this.width=650;" src="http://s5.51cto.com/wyfs02/M01/78/43/wKiom1Z5ACPwpgD1AABLxu6L4p4152.png" title="1" alt="wKiom1Z5ACPwpgD1AABLxu6L4p4152.png" />
12、选择嵌入的数据库
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/78/43/wKiom1Z5ADWSWan3AAA_rvYor4c683.png" title="2" alt="wKiom1Z5ADWSWan3AAA_rvYor4c683.png" />
13、保持默认
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/41/wKioL1Z5AIaRXZ4TAAAkXDzOyeo473.png "style=" float: none; "title=" 3.png "alt=" Wkiol1z5aiarxz4taaakxdzoyeo473.png "/>
14、可以跳过此步骤
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M00/78/43/wKiom1Z5ARPSjwlrAABG6dW02H8088.png" title="4" alt="wKiom1Z5ARPSjwlrAABG6dW02H8088.png" />
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />
15、安装完成。
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/78/43/wKiom1Z5ASTzpgz3AABBSJG69uQ379.png" title="5" alt="wKiom1Z5ASTzpgz3AABBSJG69uQ379.png" />
16、账户:admin 密码:admin
650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />
650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/78/43/wKiom1Z5ATKCKpBwAAAe28tEL6I177.png" title="6" alt="wKiom1Z5ATKCKpBwAAAe28tEL6I177.png" />
17, Login interface.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s1.51cto.com/wyfs02/m01/78/42/wkiol1z5avdrcsv-aabkya_9juy824.png "title=" 7.png "alt=" wKioL1Z5AVDRCsv-AABkyA_ 9juy824.png "/>
18, client settings.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m00/78/42/wkiol1z5ayar1ez5aaedp_2yxek023.png "title=" 9.png "alt=" wKioL1Z5AYaR1EZ5AAEdp_ 2yxek023.png "/>
19, create the user.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m02/78/42/wkiol1z5azvbtjwpaaeh2p-uvre348.png "title=" 10.png "alt=" Wkiol1z5azvbtjwpaaeh2p-uvre348.png "/>
20. Successfully logged in user.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m01/78/42/wkiol1z5aa7q0wrvaacjka8xom4479.png "title=" 11.png "alt=" Wkiol1z5aa7q0wrvaacjka8xom4479.png "/>
This article is from "Flying Little Demon" blog, please make sure to keep this source http://065432.blog.51cto.com/3079397/1727210
Xmpp+openfire+spark+centos Installation