原文::http://xiao987334176.blog.51cto.com/2202382/979677

系统是全新新安装的系统。版本号是Centos 5.6 x86
同步北京时间
# ntpdate 210.72.145.44
安装jdk,添加运行权限
#chmod +x jdk-6u35-linux-i586.bin
运行安装文件
#./jdk-6u35-linux-i586.bin
新建文件夹
#mkdir /usr/java
移动文件
#mv jdk1.6.0_35/ /usr/java/jdk1.6
编辑环境变量
#vi /etc/profile
在最后一行加入下面红色字段
 
#Javaenvironment
   export JAVA_HOME=/usr/java/jdk1.6
   exportCLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
exportPATH=$JAVA_HOME/bin:$PATH
 
又一次载入环境变量
#source /etc/profile
显示java的版本号信息,能够显示版本号。说明成功了!
# java –version
显演示样例如以下:
 
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) Client VM (build 20.10-b01, mixed mode,sharing)
 
创建文件夹
#mkdir /usr/ant
解压文件
#tar zxvf apache-ant-1.8.4-bin.tar.gz -C /usr/ant/
进入文件夹
# cd /usr/ant/
重命名文件
# mv apache-ant-1.8.4/ ant1.8
编辑环境变量
# vi /etc/profile
在最后一行加入下面红色字段
 
#Antenvironment
    export ANT_HOME=/usr/ant/ant1.8
    export PATH=$ANT_HOME/bin:$PATH
 
又一次载入环境变量
#source /etc/profile
显示java的版本号信息,能够显示版本号,说明成功了!
#ant –version
 
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
 
安装mysql
#yum -y install mysql*
启动mysql服务
#service mysqld start
设置开机自启动
# chkconfig mysqld on
设置rootpassword
# mysqladmin -u root password 123456
安装openfire
#rpm -ivh openfire-3.7.1-1.i386.rpm
启动服务
# service openfire start
设置开机自启动
# chkconfig openfire on
进入数据库
# mysql -u root -p
 
mysql> create databaseopenfire;
Query OK, 1 row affected (0.06 sec)
 
mysql> useopenfire;
Database changed
 
mysql> source/opt/openfire/resources/database/openfire_mysql.sql;
 
mysql> grant all onopenfire.* to admin@"%" identified by 'admin';
 
mysql> quit
 
client訪问URL路径

进行相关设置
參考博客
 http://blog.csdn.net/k12104/article/details/21092455
http://www.cnblogs.com/hoojo/archive/2012/05/13/2498151.html
http://www.linuxidc.com/Linux/2012-09/69539.htm
http://784734095.blog.163.com/blog/static/1091762952013822113650267/

openfire 配置 參考博客

CentOS安装Openfire服务的更多相关文章

  1. centos 安装memcache服务后memcahce本机连接Permission

    自己手动在虚拟机下装了下memcache,整个过程真是充满波折,本身用php5.3安装memcache扩展就麻烦很多,无法通过yum直接安装,安装方法详见http://chenwei.me/blog/ ...

  2. Centos安装vncserver服务

    vnc是一款Windows远程桌面软件,其优点是支持跨操作系统的远程图形化控制.下面开始记录第一次安装vnc服务的过程. 1.先检查系统是否有安装VNC服务 [root@localhost ~]# [ ...

  3. centos安装openoffice服务

    第一步:yum install openoffice.org-brand openoffice.org-core openoffice.org-java-common xvfb openoffice. ...

  4. CentOS 安装nginx服务

    安装nginx服务 sudo yum install nginx 启动nginx systemctl start nginx 加入启动项 systemctl enable nginx 测试nginx服 ...

  5. CentOS安装FTP服务

    最近公司有一个内部比赛(黑客马拉松),报名参加了这么一个赛事,在准备参赛作品的同时(参赛服务器需要自己搭建),借着这个机会,决定把tomcat部署相关的知识从0到1重新捋一遍.就当备忘录了. FTP服 ...

  6. Centos安装vsftp服务

    1.安装vsftp yum install vsftpd 2.开启vsftp服务,设置开机自启 service vsftpd restart chkconfig vsftpd on 停止vsftpd: ...

  7. centos 安装git 服务端

    // 在服务端安装好git后,开始安装gitosis 3.在服务器安装gitosis sudo yum install python python-setuptools cd /usr/local/s ...

  8. centos 安装vnc服务

    1.安装tigervnc-server yum install tigervnc-server 2.启动vnc服务 vncserver:1 [错误提示待解决bad display name " ...

  9. centos安装samba服务和配置

    1.samba简介 Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成.SMB(Server Messages Block,信息服务块)是一种在局域网上共享 ...

随机推荐

  1. (转)Objective-C语言--属性和实例变量

    本文转自http://blog.csdn.net/addychen/article/details/39525681 使用Objective-C一段时间了,一直没有弄清楚在Objective-C中属性 ...

  2. 剑指offer重构二叉树 给出二叉树的前序和后序重构二叉树

    题目描述 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树. 假设输入的前序遍历和中序遍历的结果中都不含重复的数字. 例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4, ...

  3. uboot下include\autoconfig.mk分析

    CONFIG_CMD_FAT=yCONFIG_HARD_I2C=yCONFIG_IMX_OTP=yCONFIG_CMD_ITEST=yCONFIG_ETH_PRIME=yCONFIG_CMD_BDI= ...

  4. LeetCode(8)String to Integer (atoi)

    题目: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input ca ...

  5. ubuntu 执行apt-get update报错Failed to fetch

    在ubuntu下执行sudo apt-get update时,经常会遇到报错: Err http://security.ubuntu.com precise-security InRelease Er ...

  6. centos dhcp 服务器搭建 多vlan

    centos dhcp 服务器搭建   多vlan centos 6.5   版本     /etc/dhcp/dhcpd.conf         服务器配置文件 /etc/rc.d/init.d/ ...

  7. SPOJ - ADAFIELD ,Set+map,STL不会超时!

    ADAFIELD - Ada and Field 这个题,如果用一个字来形容的话:-----------------------------------------------嗯! 题意:n*m的空白 ...

  8. 【Kubernetes】声明式API与Kubernetes编程范式

    什么是声明式API呢? 答案是,kubectl apply命令. 举个栗子 在本地编写一个Deployment的YAML文件: apiVersion: apps/v1 kind: Deployment ...

  9. Python之FTP传输

    访问FTP,无非两件事情:upload和download,最近在项目中需要从ftp下载大量文件,然后我就试着去实验自己的ftp操作类,如下(PS:此段有问题,别复制使用,可以参考去试验自己的ftp类! ...

  10. spring 如何动态加载properties文件的内容

    1. 在xml中配置你的properties路径: <bean id="messageSource" class="org.springframework.cont ...