Linux 安装记录
# 安装elasticsearch
https://segmentfault.com/a/1190000011899522
./bin/elasticsearch -d 后台启动。
ps -ef |grep elasticsearch 查看运行情况
修改elasticsearch.yml
network.host: 0.0.0.0
http.port: 9200
安装kibana
解压到指定目录
#tar -zxvf kibana-5.2.2-linux-x86_64.tar.gz -C /usr/local
#启动需要使用非root用户启动。赋予其他用户权限
chown -R [用户] [目录]
#后台启动
./elasticsearch -d
# JDK
#查看是否安装
yum list installed | grep java
#查看yum库的java安装包
yum search jdk
#安装
yum -y install java-1.8.0-openjdk.x86_64
#查看java版本
java -version
#卸载
yum -y remove java-1.8.0-openjdk*
#查看安装路径
https://blog.csdn.net/renfufei/article/details/52621034
# 查看安装路径
update-alternatives --list java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# MySQL
CentOS http://www.cnblogs.com/starof/p/4680083.html Ubuntu https://blog.csdn.net/xiangwanpeng/article/details/54562362
# CentOS安装
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
#设为开机自启
service mysqld restart
#进入MySQL
mysql -u[用户名] -p[密码]
#设置远程连接
mysql> grant all privileges on *.* to root@'%'identified by 'password';
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
docker-compose 安装MySQL
version: '3'
services:
mysql:
network_mode: "host"
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_USER: ''
MYSQL_PASS: ''
image: "docker.io/mysql:latest"
restart: always
volumes:
- "./db:/var/lib/mysql"
- "./conf/my.cnf:/etc/my.cnf"
- "./init:/docker-entrypoint-initdb.d/"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
init 目录创建init.sql
use mysql;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourpassword';
1
2
2
# redis
#安装
yum install redis
#redis.conf文件默认在/etc目录下,你可以更改它的位置和名字,更改后,注意在文件/usr/lib/systemd/system/redis.service中,把ExecStart=/usr/bin/redis-server /etc/redis/6379.conf --daemonize no中的redis.conf的路径改成的新的路径。
#开机自启
systemctl enable redis.service
#重启
service redis restart
#查看运行状态
ps -ef | grep redis
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# maven
maven版本下载地址 (opens new window)
#下载
cd /opt
wget https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.tar.gz
#解压
tar xzvf apache-maven-3.5.0-bin.tar.gz
#移动
mv apache-maven-3.5.0 /usr/local/apache-maven
#配置环境变量
vim /etc/profile
export MAVEN_HOME=/usr/local/apache-maven
export PATH=${PATH}:${MAVEN_HOME}/bin
source /etc/profile
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
export M2_HOME=/usr/local/maven3
export PATH=
# ffmpeg
yum install epel-release -y
#查看centos版本
cat /etc/redhat-release
#由于CentOS没有官方FFmpeg rpm软件包。但是,我们可以使用第三方YUM源(Nux Dextop)完成此工作
#centos7安装
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
#centos6安装
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
#安装ffmpeg
yum install ffmpeg ffmpeg-devel -y
#查看
ffmpeg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 安装node
yum install nodejs
npm install -g n
n stable 升级到最新稳定版本 n latest 升级到最新版本
# npm 设置淘宝镜像
# 永久使用
npm config set registry https://registry.npm.taobao.org
# 配置cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 恢复npm
npm config set registry https://registry.npmjs.org
# 更新
npm install npm@latest -g
# 安装python
https://blog.51cto.com/moerjinrong/2396290
yum install python36 -y yum install python36-pip -y 升级pip3 pip3 install --upgrade pip
编辑 (opens new window)
上次更新: 2024/11/09, 09:01:06