This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
38 lines (27 loc) · 2.05 KB
/
commands.txt
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
sudo apt update && sudo apt upgrade -y && sudo apt install net-tools
sudo apt-get install software-properties-common && sudo add-apt-repository ppa:ondrej/php && sudo apt-get update && sudo apt install php8.1 -y
sudo apt install php8.1-common && sudo apt install php8.1-cli && sudo apt install php8.1-fpm && sudo apt install php8.1-mysql && sudo apt install php8.1-memcache && sudo apt install php8.1-memcached -y && sudo apt install php8.1-bcmath && sudo apt install php8.1-curl && sudo apt install php8.1-mbstring -y && sudo apt install php8.1-gmp -y && sudo apt install php8.1-zip -y && sudo apt install php8.1-xml -y && sudo apt install php8.1-dev -y && sudo apt install php8.1-redis -y
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
cd /etc/php/8.1/cli && sudo nano /etc/php/8.1/cli/php.ini
press: f6
type: ;error_log = php_errors.log
set directory. As example: /home/ubuntu/logs/php_errors.log
sudo apt install memcached libmemcached-tools -y && sudo apt install redis-server -y && sudo apt install redis-tools && sudo systemctl restart redis
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
sudo apt-get update && sudo apt autoremove -y && sudo apt-get install -y nodejs && sudo npm install pm2 -g
sudo apt install mysql-server -y && sudo service mysql start
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
find bind-address
change to bind-address = 0.0.0.0
sudo systemctl restart mysql
sudo mysql
CREATE DATABASE learn CHARACTER SET utf8;
CREATE USER 'student'@'%' IDENTIFIED BY 'STUDENT';
GRANT ALL PRIVILEGES ON learn.* TO 'student'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
git clone [email protected]:kleninmaxim/arbitrage.git && cd arbitrage/
composer install