linux中jdk mysql tomcat安装,以及navicat的使用

1 JDK安装

注意:rpm与软件相关命令 相当于window下的软件助手 管理软件

步骤:

    1)查看当前Linux系统是否已经安装java

        输入 rpm -qa | grep java

    2)卸载两个openJDK

        输入rpm -e --nodeps 要卸载的软件

    3)解压jdk到/usr/local下 tar –xvf jdk-7u71-linux-i586.tar.gz –C /usr/local

    4)配置jdk环境变量,打开/etc/profile配置文件,将下面配置拷贝进去

#set java environment
	JAVA_HOME=/usr/local/jdk1.7.0_71
	CLASSPATH=.:$JAVA_HOME/lib.tools.jar
	PATH=$JAVA_HOME/bin:$PATH
	export JAVA_HOME CLASSPATH PATH 

   5)重新加载/etc/profile配置文件 source /etc/profile

2 Mysql安装

步骤:

  1)查看CentOS自带的mysql

       输入 rpm -qa | grep mysql

  2)将自带的mysql卸载

  3)上传Mysql到linux

  4)解压Mysql到/usr/local/下的mysql目录(mysql目录需要手动创建)内

      cd /usr/local

      mkdir mysql

      tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql

 5)在/usr/local/mysql下安装mysql

      安装服务器端:rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm

      安装客户端:rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm

  6)启动mysql

      service mysql start

  7)将mysql加到系统服务中并设置开机启动

       加入到系统服务:chkconfig --add mysql

       自动启动:chkconfig mysql on

  8)登录mysql

       mysql安装好后会生成一个临时随机密码,存储位置在/root/.mysql_secret

       msyql –u root -p

  9)修改mysql的密码

      set password = password('root');

 10)开启mysql的远程登录

       默认情况下mysql为安全起见,不支持远程登录mysql,所以需要设置开启     

grant all privileges on *.* to 'root' @'%' identified by 'root';
flush privileges;

 

 11)开放Linux的对外访问的端口3306

      /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

     /etc/rc.d/init.d/iptables save ---将修改永久保存到防火墙中

3 Tomcat安装

步骤:

 1)上传Tomcat到linux上

 2)解压Tomcat到/usr/local下

 3)开放Linux的对外访问的端口8080

      /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

      /etc/rc.d/init.d/iptables save

 4)启动关闭Tomcat

     进入tomcat的bin下启动:./startup.sh

     进入tomcat的bin下关闭:./shutdown.sh

 

 
 
G
M
T
 
 
Detect languageAfrikaansAlbanianAmharicArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CorsicanCroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchFrisianGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHawaiianHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanKurdishKyrgyzLaoLatinLatvianLithuanianLuxembourgishMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPashtoPersianPolishPortuguesePunjabiRomanianRussianSamoanScots GaelicSerbianSesothoShonaSindhiSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshXhosaYiddishYorubaZulu
 
AfrikaansAlbanianAmharicArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CorsicanCroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchFrisianGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHawaiianHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanKurdishKyrgyzLaoLatinLatvianLithuanianLuxembourgishMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPashtoPersianPolishPortuguesePunjabiRomanianRussianSamoanScots GaelicSerbianSesothoShonaSindhiSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshXhosaYiddishYorubaZulu
 
 
 
 
 
 
 
 
 
Text-to-speech function is limited to 200 characters
 
 
Options : History : Feedback : DonateClose
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值