标签:des style blog http color io os ar 使用
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,那么先将它移除以免产生任何的冲突
sudo apt-get remove --purge openjdk*
然后使用下面的命令安装Oracle Java 7
sudo apt-get install oracle-java7-installer
sudo apt-get install mysql-server
先用root权限登录到mySQL服务器
sudo mysql -u root p
创建的数据库名称叫做"dbopenfire",然后添加新的用户"openfire"并且密码设置未"openfirepwd"。
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.deb
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代替。
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地址。下面是网页截图。
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/
创建一个桌面启动的文件,打开控制台并且运行下面的命令。
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了。
一步一步在ubuntu上安装即时通讯服务器-Openfire
标签:des style blog http color io os ar 使用
原文地址:http://www.cnblogs.com/dagehaoshuang/p/4047738.html