• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

centos 安装mysql,tomcat6,jkd6.0配置JAVA服务器

Linux 开心洋葱 1885次浏览 0个评论

yum remove mysql  卸载安装的MSYQL

yum -y install  java-1.6.0-openjdk*

 

cd /etc/yum.repos.d 

wget 'http://www.jpackage.org/jpackage50.repo'

yum update 

yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps 

service tomcat6 start

 

May be a niche post but after some fighting with my virtual server running CentOS 5 it boiled down to a really simple solution:

view sourceprint?


1 cd /etc/yum.repos.d 

2 wget 'http://www.jpackage.org/jpackage50.repo'

3 yum update 

4 yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps 

5 service tomcat6 start
If you have problems accessing the server from another machine you may need to do the following:

view sourceprint?
1 setup 

2 "Firewall configuration"

3 "Customize"

4 "Other ports" 8080:tcp 

5 "Ok"

6 service tomcat6 restart
UPDATE:

If you get a dependency error try this:

view sourceprint?
1 rpm -Uvh 'http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm'
More info:http://plone.lucidsolutions.co.nz/linux/centos/jpackage-jpackage-utils-compatibility-for-centos-5.x


装上之后 一直是启动不了 报错

Timeout error occurred trying to start MySQL Daemon

Starting MySQL:                                            [FAILED]

后来我想到用源码编译后的安装方法时,安装完毕后需要 初始化数据库的  这个忘了就导致上面的现象。

/usr/bin/mysql_install_db

执行上面即可


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明centos 安装mysql,tomcat6,jkd6.0配置JAVA服务器
喜欢 (0)

您必须 登录 才能发表评论!

加载中……