代码拉取完成,页面将自动刷新
# 安装必要的依赖
apt-get update
apt-get install wget curl apt-transport-https gnupg -y
# 安装 Elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list
apt-get update && apt-get install elasticsearch -y
service elasticsearch start
systemctl status elasticsearch
# 安装 MinIO
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
mv minio /usr/bin/minio
mkdir /opt/minio-data
export MINIO_ROOT_USER=minio
export MINIO_ROOT_PASSWORD=ezdata123
nohup minio server /opt/minio-data --console-address :19001 > /opt/minio-data/minio.log 2>&1 &
# 安装 MySQL
wget https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.deb
dpkg -i mysql-apt-config_0.8.16-1_all.deb
apt-get update
apt-get install mysql-server -y
# 进入 MySQL shell 修改 root 密码
mysql -u root -p <<EOF
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'ezdata123';
FLUSH PRIVILEGES;
EOF
# 安装 Redis
apt-get install redis-server -y
echo -e "\nrequirepass ezdata123" | sudo tee -a /etc/redis/redis.conf
systemctl restart redis-server
systemctl status redis-server
# 安装 Nginx
apt-get install nginx -y
# systemctl status nginx
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。