CentOS7 安装软件部署环境

安装Mysql

 

CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载

 
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server

成功安装之后重启mysql服务

 
# service mysqld restart

初次安装mysql是root账户是没有密码的

设置密码的方法

 
# mysql -uroot
mysql> set password for 'root'@'localhost'=password(' Ydsabf889@9j!X');
mysql> exit

搞定!

 

 

=======================================

 

配置AAPT

 

1. 以Root身份解压到任意目录

2. vi /etc/profile 设置PATH路径为AAPT路径

3. 运行aapt测试

 

 

4. 报错aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

# yum install glibc*.i686
# yum install zlib*.i686
# yum install libstdc++.so.6

 

搞定!


=======================================

 

安装Nginx

 

1. rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2. yum install nginx

3. service nginx start

 

搞定!


=======================================

 

安装JDK

 

1. yum -y list java*

2. yum install java-1.7.0-openjdk

 

搞定!


=======================================

 

 

安装Redis

 

1. yum install epel-release

2. yum install redis

3. systemctl start redis.service 启动

4. systemctl stop redis.service 停止

5. systemctl restart redis.service 重启

 

搞定!

你可能感兴趣的:(Linux)