最小化CentOS6.7(64bit)安装mysql5.5jdktomcat

Posted 小航哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了最小化CentOS6.7(64bit)安装mysql5.5jdktomcat相关的知识,希望对你有一定的参考价值。

********mysql********

----------------------------------------------------------------------------------------------------------------

所需要的rpm文件:

  (https://downloads.mysql.com/archives/community)

MySQL-client-5.5.48-1.linux2.6.x86_64.rpm

MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

----------------------------------------------------------------------------------------------------------------

步骤:

1.上传MySQL-server-5.5.48-1.linux2.6.x86_64.rpm、MySQL-client-5.5.48-1.linux2.6.x86_64.rpm到Linux上

2.使用rpm命令安装MySQL-server-5.5.48-1.linux2.6.x86_64.rpm,缺少perl依赖

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

解决方法
[[email protected] mysql]# yum install libaio
[[email protected] mysql]# yum install perl

3、再安装MySQL-server,rpm包冲突

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

4.卸载冲突的rpm包

rpm -e mysql-libs-5.1.73-5.el6_6.x86_64 --nodeps

5.再安装MySQL-client和MySQL-server

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

安装成功,提示:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password ‘new-password‘
/usr/bin/mysqladmin -u root -h shizhan01 password ‘new-password‘

Alternatively you can run:
/usr/bin/mysql_secure_installation6.启动mysql服务

service mysql start7。提示未安装mysql客户端

rpm -ivh MySQL-client-5.5.48-1.linux2.6.x86_64.rpm

8.启动MySQL服务,然后初始化MySQL

service mysql start

/usr/bin/mysql_secure_installation

9.测试MySQL

mysql -u root -p root

*********jdk************

----------------------------------------------------------------------

jdk-7u45-linux-x64.tar.gz

---------------------------------------------------------------------

1.上传jdk-7u45-linux-x64.tar.gz到Linux上

2.解压jdk到/root/apps目录

mkdir apps

tar -zxvf jdk-7u45-linux-x64.tar.gz -C /root/apps/

3.设置环境变量,在/etc/profile文件最后追加相关内容

vi /etc/profile

export JAVA_HOME=/root/apps/jdk1.7.0_45

export PATH=$PATH:$JAVA_HOME/bin

4.刷新环境变量

source /etc/profile

5.测试java命令是否可用

java -version

*******tomcat**********

-------------------------------------------------------------

apache-tomcat-7.0.68.tar.gz

----------------------------------------------------------------

1.上传apache-tomcat-7.0.68.tar.gz到Linux上

2.解压tomcat

tar -zxvf apache-tomcat-7.0.68.tar.gz -C /root/apps/

3.启动tomcat

/root/apps/apache-tomcat-7.0.68/bin/startup.sh

4.查看tomcat进程是否启动

jps

5.查看tomcat进程端口

netstat -anpt | grep 2465

6.通过浏览器访问tomcat

http://192.168.0.101:8080/










以上是关于最小化CentOS6.7(64bit)安装mysql5.5jdktomcat的主要内容,如果未能解决你的问题,请参考以下文章

nfs服务器在centos6.7 64Bit下的搭建

mysq双主模式

Vmware Fusion CentOS6.7-64安装:

VMware Fusion CentOS6.7-64安装:

centos6-7 yum安装php的方法

centos6-7 yum安装php的方法