20分钟完成linux上安装JDK+TOMCAT+MYSQL
总述: 1.可以采用ftp窗口和命令行窗口一起使用的方式来配置 2.JDK、tomcat文件都可以到官网wget下载。 附注:这里只是将分散的知识点集中了起来而已。
Linux安装JDK Search Keyword:linux 安装JDK 参考文章:http://www.blogjava.net/flyingis/archive/2005/10/28/17191.aspx 1.下载: # wget http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-x64-rpm.bin 2.赋权限: chmod +x jdk-6u31-linux-x64-rpm.bin 3.安装: #./jdk-6u31-linux-x64-rpm.bin 4.设置java环境:直接下载etc/profile在最后添加如下内容,然后上传 #set java environment JAVA_HOME=/usr/java/jdk1.6.0_31 CLASSPATH=.:$JAVA_HOME/lib.tools.jar PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME CLASSPATH PATH 5.是否成功安装JDK验证:# java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM
Linux安装Tomcat Search Keyword:linux 安装tomcat 参考文章:http://www.blogjava.net/flyingis/archive/2005/10/28/17191.aspx 1.下载: Wget:http://apache.etoak.com/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.tar.gz 2.解压: #tar -zxvf apache-tomcat-6.0.35.tar.gz 3.启动tomcat cd /usr/local/tomcat6/bin #./startup.sh 4.访问tomcat http://www.domain.com:8080/
Linux安装mysql 采用yum安装mysql http://www.cxybase.com/201011/linux%E4%B8%8B%E4%BD%BF%E7%94%A8yum%E5%AE%89%E8%A3%85mysql/ #yum install mysql-server
授权访问mysql server http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html 10楼: http://bbs.chinaunix.net/thread-658853-1-1.html 1、d:\mysql\bin\>mysql -h localhost -u root //这样应该可以进入MySQL服务器 2、mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION //赋予任何主机访问数据的权限 3、mysql>FLUSH PRIVILEGES //修改生效 4、mysql>EXIT //退出MySQL服务器 Mysql开关及重启 service mysqld start service mysqld stop service mysqld restart
.
相关推荐
Gexrior 2020-10-22
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11