Обновить memories
This commit is contained in:
parent
eab763cd98
commit
9fc1ed33f3
62
memories
62
memories
@ -0,0 +1,62 @@
|
|||||||
|
install "minimized server"
|
||||||
|
|
||||||
|
*** after install: ***
|
||||||
|
# sudo su -
|
||||||
|
# apt purge -y cloud-init
|
||||||
|
# rm -rf /etc/cloud
|
||||||
|
# rm /etc/netplan/50-cloud-init.yaml
|
||||||
|
# apt purge -y unattended-upgrades
|
||||||
|
# rm -rf /var/log/unattended-upgrades
|
||||||
|
# apt autoremove -y
|
||||||
|
# apt install -y netplan.io isc-dhcp-client mc
|
||||||
|
|
||||||
|
# touch /etc/netplan/00-installer-config.yaml
|
||||||
|
# This is the network config written by 'subiquity'
|
||||||
|
network:
|
||||||
|
version: 2
|
||||||
|
ethernets:
|
||||||
|
eth0:
|
||||||
|
dhcp4: no
|
||||||
|
addresses:
|
||||||
|
- 192.168.1.109/24
|
||||||
|
nameservers:
|
||||||
|
addresses: [192.168.1.1]
|
||||||
|
routes:
|
||||||
|
- to: default
|
||||||
|
via: 192.168.1.1
|
||||||
|
|
||||||
|
# chmod 600 /etc/netplan/00-installer-config.yaml
|
||||||
|
# netplan try
|
||||||
|
# netplan apply
|
||||||
|
# systemctl restart systemd-networkd
|
||||||
|
# apt-get update
|
||||||
|
# apt-get install -y mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales
|
||||||
|
# aptitude install console-cyrillic
|
||||||
|
# dpkg-reconfigure locales
|
||||||
|
select [392] ru_RU.UTF-8 UTF-8
|
||||||
|
|
||||||
|
# reboot
|
||||||
|
# sudo su -
|
||||||
|
|
||||||
|
# wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install-ubuntu.sh
|
||||||
|
# bash hst-install-ubuntu.sh --lang ru --hostname [HOSTNAME] --email [EMAIL] --password [PASSWORD] --postgresql yes --dovecot no --clamav no --spamassassin no
|
||||||
|
# reboot
|
||||||
|
|
||||||
|
# usermod -aG sudo admin
|
||||||
|
** relogin
|
||||||
|
|
||||||
|
# sudo su -
|
||||||
|
# apt-get install -y memcached php-memcached php8.2-memcached
|
||||||
|
|
||||||
|
# v-add-database admin rfclass_pg rfclass_pg [DB_PASSWORD] pgsql localhost
|
||||||
|
# v-add-database admin eis_pg eis_pg [DB_PASSWORD] pgsql localhost
|
||||||
|
|
||||||
|
*** copy archive ***
|
||||||
|
|
||||||
|
*** restore database: admin_rfclass_pg
|
||||||
|
# grep -Eo "PASSWORD='[a-zA-Z0-9]+'" /usr/local/hestia/conf/pgsql.conf | awk -F "PASSWORD=" '{print $2}' | awk -F "'" '{print $2}'
|
||||||
|
|
||||||
|
# exit
|
||||||
|
# cd /home/admin/web/[SITE]/public_html
|
||||||
|
# php composer.phar install
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user