首页 > 代码库 > linux下常用工具安装

linux下常用工具安装

1.安装rz sz上传下载    

yum install lrzsz

 

2.安装jdk

下载jdk放在指定目录

vim /etc/profile
export JAVA_HOME=linux下jdk路径
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
echo $PATH

 

3.安装mysql数据库

MySQL-client-5.6.21-1.rhel5.x86_64.rpm
MySQL-devel-5.6.21-1.rhel5.x86_64.rpm
MySQL-server-5.6.21-1.rhel5.x86_64.rpm

wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.21-1.rhel5.x86_64.rpm
wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.21-1.rhel5.x86_64.rpm
wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.21-1.rhel5.x86_64.rpm

rpm -e mysql-libs-5.1.66-2.el6_3.x86_64 --nodeps

rpm -ivh MySQL-server-5.6.21-1.rhel5.x86_64.rpm
rpm -ivh MySQL-client-5.6.21-1.rhel5.x86_64.rpm

cat ./.mysql_secret

mysql -uroot -p

set password=password("root");
flush privileges;

 

linux下常用工具安装