WireGuard là một hệ thống VPN thú vị, mới, cực kỳ đơn giản, sử dụng mật mã hiện đại. Việc triển khai Linux của nó chạy trong kernel, giúp tăng hiệu năng đáng kể so với triển khai VPN không gian người dùng truyền thống
Mô-đun nhân WireGuard rất tuyệt, nhưng đôi khi bạn có thể không cài đặt được các mô-đun mới. Ví dụ như là trên VPS sử dụng OpenVZ hoặc LXC.
2 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash 6 nvm list-remote 7 nvm install v14.20.1 9 sudo apt install node-gyp 11 sudo apt install pkg-config libusb-1.0-0-dev libudev-dev 13 sudo apt install build-essential autotools-dev automake autoconf git curl -y 14 sudo apt install libusb-dev libtool 18 sudo apt install unbound libunbound-dev 15 git clone https://github.com/pinheadmz/palmreader 16 cd palmreader 21 npm install 22 npm install -g 24 cd bin 25 ls 27 ./palmreader 28 cd 29 history 12 wget -q -O - https://raw.
//install node version manager curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
// check version node –version
// list remote nvm list-remote
// list installed versions of node (via nvm) nvm ls
// install specific version of node nvm install v14.20.1
// set default version of node nvm alias default v14.20.1
// switch version of node nvm use v14.20.1
// https://stackoverflow.com/questions/66434750/npm-err-git-dep-preparation-failed-when-trying-to-install-package-json
npm cache clean –force rm -rf node_modules && rm package-lock.json npm install –legacy-peer-deps
Debian/Ubuntu
Công cụ cơ bản:
sudo apt-get install gcc g++ make
1. Tạo thư mục chứa dữ liệu bot mkdir hummingbot 2. Phân chia thư mục dữ liệu của bot cho file logs, file config và file database mkdir hummingbot/conf mkdir hummingbot/logs mkdir hummingbot/data mkdir hummingbot/scripts 3. Phân quyền thư mục Để tránh lỗi [Errno 13] Permission denied: 'conf/encrypted_default.json' thì cần phải phân quyền thư mục
sudo chown -R $USER ~/hummingbot chmod -R 777 ./hummingbot 3. Tạo và chạy hummingbot docker create -it \ --name hummingbot-instance \ --network host \ --mount "type=bind,source=$(pwd)/hummingbot/conf,destination=/conf/" \ --mount "type=bind,source=$(pwd)/hummingbot/logs,destination=/logs/" \ --mount "type=bind,source=$(pwd)/hummingbot/data,destination=/data/" \ --mount "type=bind,source=$(pwd)/hummingbot/scripts,destination=/scripts/" \ coinalpha/hummingbot:latest docker start hummingbot-instance && docker attach hummingbot-instance Giới hạn tài sản có thể được sử dụng Trường hợp bạn muốn bot chỉ có thể thực thi trong 100USD có thể xem xét tính năng này.
1. NGINX version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - '80:80' - '443:443' volumes: - './app:/var/www/html' - './config/nginx:/etc/nginx/conf.d' 2. MySQL (MariaDB) version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - '80:80' - '443:443' volumes: - './app:/var/www/html' - './config/nginx:/etc/nginx/conf.d' mariadb: image: mariadb:10.3.9 container_name: mariadb restart: 'on-failure' environment: MYSQL_ROOT_PASSWORD: lab-skywirex volumes: - ${PWD} Luc nay co the truy cap vao container mariadb de thuc thi cau lenh SQL
https://www.binarytides.com/enable-testing-repo-debian/
Cài đặt và sử dụng backports
https://wiki.debian.org/AptPreferences https://wiki.debian.org/DebianTesting https://www.debian.org/security/
VPN
https://xalitech.com/wireguard-vpn-server-on-aws-lightsail/
https://golb.hplar.ch/2018/10/wireguard-on-amazon-lightsail.html
Tải và ghi file ISO vào ổ đĩa VPS curl -O 'https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/alpine-virt-3.14.2-aarch64.iso' https://alpinelinux.org/downloads/ ubuntu@skywirex:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 48.9M 1 loop /snap/core18/2127 loop1 7:1 0 62M 1 loop /snap/lxd/21032 loop2 7:2 0 28.1M 1 loop /snap/snapd/12886 loop3 7:3 0 36.3M 1 loop /snap/oracle-cloud-agent/15 sda 8:0 0 46.6G 0 disk ├─sda1 8:1 0 46.5G 0 part / └─sda15 8:15 0 99M 0 part /boot/efi Ghi file ISO vào sda /dev/sda