sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
若是你正在使用OPenJDK,那麼先將它移除以避免產生任何的衝突java
sudo apt-get remove --purge openjdk*
而後使用下面的命令安裝Oracle Java 7python
sudo apt-get install oracle-java7-installer
sudo apt-get install mysql-server
先用root權限登陸到mySQL服務器mysql
sudo mysql -u root p
建立的數據庫名稱叫作"dbopenfire",而後添加新的用戶"openfire"而且密碼設置未"openfirepwd"。linux
mysql> CREATE DATABASE dbopenfire CHARACTER SET='utf8'; mysql> CREATE USER 'openfire'@'localhost' IDENTIFIED BY 'openfirepwd'; mysql> GRANT ALL PRIVILEGES ON dbopenfire.* TO openfire@localhost WITH GRANT OPTION; mysql> FLUSH PRIVILEGES; mysql> quit
cd /tmp
wget http://download.igniterealtime.org/openfire/openfire_3.7.1_all.deb
使用dpkg命令安裝openfire_3.7.1_all.debweb
sudo dpkg -i openfire_3.7.1_all.deb
(Reading database ... 85791 files and directories currently installed.) Preparing to replace openfire 3.6.4 (using openfire_3.7.1_all.deb) ... Unpacking replacement openfire ... Setting up openfire (3.7.1) ... Installing new version of config file /etc/openfire/security/truststore ... Installing new version of config file /etc/init.d/openfire ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot
忽略全部對於用戶和文件夾權限的安裝偏差。這多是由於你的jre/JDK版本致使的。你須要編輯文件/etc/init/d/openfire 的27行。將java-6-sun用java-6-oracle或者java-7-oracle代替。sql
sudo apt-get install rpl
sudo rpl '6-sun' '7-oracle' /etc/init.d/openfire
sudo service openfire start
sudo ufw allow 9090/tcp sudo ufw allow 9091/tcp sudo ufw allow 5222/tcp sudo ufw allow 7777/tcp sudo ufw allow 7443/tcp sudo ufw allow 7070/tcp sudo ufw allow 3478/tcp sudo ufw allow 3479/tcp
通過以上的配置,openfire的初始化安裝步驟已經完成了。下一步,咱們繼續經過web瀏覽器來配置。數據庫
http://mydomain:9090/setup/index.jsp
將上面的mydomain替換成你部署openfire服務器的ip地址。下面是網頁截圖。 ubuntu
wget http://download.igniterealtime.org/spark/spark_2_6_3.tar.gz
tar -zxvf spark_2_6_3.tar.gz
sudo mkdir /opt/spark
sudo mv Spark/* /opt/spark/
建立一個桌面啓動的文件,打開控制檯而且運行下面的命令。windows
sudo nano /usr/share/applications/spark.desktop
[Desktop Entry] Name=Spark Version=2.6.3 GenericName=Spark X-GNOME-FullName=Spark Comment=ignite realtime Spark IM client Type=Application Categories=Application;Utility; Path=/opt/spark Exec=/bin/bash Spark Terminal=false StartupNotify=true Icon=/opt/spark/logo-spark.png TargetEnvironment=Unity
sudo cd /opt/spark
sudo wget https://dl.dropbox.com/u/50880014/spark.png
如今,你能夠打開Spark客戶端了,而且能夠嘗試鏈接到openfire了。 瀏覽器