---
# System prepended metadata

title: ES 安裝步驟
tags: [工廠處理]

---

# ES 安裝步驟
###### tags: `工廠處理`

初次安裝ES
first Install
step1: install ubuntu-18.04.1-desktop-amd64
add user: test/8888
如果忘記add user, 可以用指令加：
(1)
sudo su -c "useradd test -s /bin/bash -m --group sudo" && echo "test:8888" | sudo chpasswd
step2: 環境設定
(2)
sudo su
(3)
echo "test ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/test
(4)
apt-get update
(5)
yes | apt-get install -y openssh-server dpkg-dev git net-tools zip unzip pbzip2 clamav
(6)
cd /home/test; git clone http://gitlab+deploy-token-11:t-5RLs7FjyJjkN4_dEX1@10.10.2.81:8088/puzzle/edge-server-factory-env ; cd edge-server-factory-env
 (7)
chmod 777 setup.sh ; bash setup.sh
