-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_env_debian.sh
69 lines (51 loc) · 1.51 KB
/
install_env_debian.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sshd
mkdir ~/.ssh
nano .ssh/authorized_keys
sshd --help
sshd restart
systemctl sshd restart
nano /etc/ssh/sshd_config
systemctl restart ssh
exit
ls -la
sudo apt install nginx
sudo apt-get update
sudo apt install nginx
lsof -i :80
systemctl stop apache2
lsof -i :80
systemctl disable apache2
systemctl start nginx
nano /etc/nginx/sites-available/api.slowrug.io
sudo apt install git
nano etc/systemd/system/api.slowrug.io
sudo apt install nodejs
sudo apt remove nodejs
sudo apt install curl
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install letsencrypt
nano ../gen_certs.sh
bash ../gen_certs.sh
nginx -t
cd /etc/nginx/nginx.conf
nano nginx.conf
ln -s /etc/nginx/sites-available/api.slowrug.io /etc/nginx/sites-enabled/api.slowrug.io
nginx -t
systemctl restart nginx
tail -n 20 var/log/nginx/api.slowrug.io.error.log
systemctl enable api.slowrug.io.service
mv /etc/systemd/system/api.slowrug.io /etc/systemd/system/api.slowrug.io.service
systemctl start api.slowrug.io.service
systemctl enable api.slowrug.io.service
journalctl -xefu api.slowrug.io.service
systemctl restart api.slowrug.io.service
journalctl -xefu api.slowrug.io.service
nano etc/systemd/system/api.service.io.service
systemctl restart api.slowrug.io.service
systemctl daemon-reload
journalctl -xefu api.slowrug.io.service
nginx -t
systemctl restart nginx
tail -n 20 /var/log/nginx/api.slowrug.io.access.log
journalctl -xefu api.slowrug.io.service
journalctl -xefu api.slowrug.io.service | grep "New Connection Established,ADD SOCKET"