linux(安装软件)

Posted 楷兵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux(安装软件)相关的知识,希望对你有一定的参考价值。

Mysql
1.下载源
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
2.安装源
yum localinstall mysql57-community-release-el7-8.noarch.rpm
3.检查是否安装成功
yum repolist enabled | grep "mysql.*-community.*"

4.安装mysql
yum install mysql-community-server

5.开机启动
systemctl enable mysqld
systemctl daemon-reload

6.启动mysql
service mysqld start

7.查看运行状态
service mysqld status

8.获取临时密码
grep ‘temporary password‘ /var/log/mysqld.log

9.登录mysql
mysql -uroot -p

10.修改密码难度
set global validate_password_policy=0;
set global validate_password_length=1;

11.修改密码
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘123456‘;

12.授权其他机器登录
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;

 

Linux

2.关闭防火墙
systemctl stop firewalld.service
3.禁止firewall开机启动
systemctl disable firewalld.service


Redis
1.解压
tar -zvxf redis-4.0.9.tar.gz
2.移动到要安装的目录
mv redis-4.0.9 /usr/local/redis
3.进入要安装的目录
cd /usr/local/redis/
4.编译
make -j 4
5.安装
make install
6.修改配置文件
(1)允许所有ip访问 bind 0.0.0.0
(2)开启远程数据服务 daemonize yes
(3)设置登录requirepass 123456
7.启动redis并制定配置文件
redis-server ./redis.conf
8.查看进程,redis是否启动
ps -ef | grep redis
9.连接客户端
redis-cli
10.基础utils/
cd utils/
11.配置启动设置
./install_server.sh

Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf] /usr/local/redis/redis.conf
Please select the redis log file name [/var/log/redis_6379.log] /usr/local/redis/redis.log
Please select the data directory for this instance [/var/lib/redis/6379] /usr/local/redis/data

12.查看配置情况
chkconfig --list | grep redis

13.启动/停止/查看/redis_6379
systemctl start redis_6379
systemctl stop redis_6379
systemctl status redis_6379
systemctl restart redis_6379

14.查看所有的key
keys *

15.客户端连接远程redis
redis-cli -h 192.168.80.129 -p 6379


安装erlang
1.安装依赖
yum install ncurses-devel
2.解压
tar xf otp_src_20.3.tar.gz
3.进入街解压包
cd otp_src_20.3/
4.配置
./configure --prefix=/usr/local/erlang20 --without-javac
5.编译
make -j 2
6.安装
make install
7.进入安装目录
cd /usr/local/erlang20
cd bin
8.检查是否安装成功
./erl

安装RabbitMQ
1.解压
xz -d rabbitmq-server-generic-unix-3.7.5.tar.xz
tar xf rabbitmq-server-generic-unix-3.7.5.tar
2.安装依赖
yum install python -y
yum install xmlto -y
yum install python-simplejson -y
3.移动
mv rabbitmq_server-3.7.5 /usr/local/rabbitmq
4.进入
cd /usr/local/rabbitmq
cd sbin
5.环境变量配置
vi /etc/profile
export PATH=$PATH;/usr/local/erlang20/bin;/usr/local/rabbitmq/sbin
生效
source /etc/profile

5.启动

 






























































































以上是关于linux(安装软件)的主要内容,如果未能解决你的问题,请参考以下文章

linux怎样查询一个软件的安装目录

linux 系统怎样装软件?

linux怎么安装软件

Linux软件安装——安装软件的命令

linux中怎样查看已安装的软件

linux软件包安装问题