********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
解决方法
[root@xcldtc5m mysql]# yum install libaio
[root@xcldtc5m 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_installation
6.启动mysql服务
service mysql start
7.提示未安装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到/usr/local目录
mkdir apps
tar -zxvf jdk-7u45-linux-x64.tar.gz -C /usr/local/
3.设置环境变量,在/etc/profile文件最后追加相关内容
vi /etc/profile
export JAVA_HOME=/usr/local/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