xmpp+openfire+spark+centos 安裝

來源:互聯網
上載者:User

標籤:內網聊天工具


1、環境準備

centos6.5x64 ,

2、卸載系統內建的jdk

rpm -qa|grep jdk


rpm -e --nodeps  java*


3、安裝jdk

rpm -ivh  jdk-8u66-linux-x64.rpm


4、vi /etc/profile

輸入o,在最後加入以下內容:

JAVA_HOME=/usr/java/jdk1.8.0 
JRE_HOME=/usr/java/jdk1.8.0/jre 
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin 
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib 
export JAVA_HOME JRE_HOME PATH CLASSPATH 
使環境變數立即生效

$source /etc/profile

5.測試安裝是否成功

依次輸入java,java -version,javac,看到輸出資訊即可,例如

$ 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、安裝mysql

# yum -y mysql-server myql-devel

#  service mysqld restart                                               #重啟服務

# /usr/bin/mysqladmin -u root password root            #設定密碼root

#shez如果設定密碼錯誤可參考 (mysql設定密碼)

#chkconfig mysql on                                     #設定開機啟動

7、openfire 版本相容。

# 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、登入介面。

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、用戶端設定。

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、建立使用者。

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、成功登入使用者。

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" />


本文出自 “飛天小妖” 部落格,請務必保留此出處http://065432.blog.51cto.com/3079397/1727210

xmpp+openfire+spark+centos 安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.