SMF - Just Installed!
sudo fdisk –l
sudo fdisk /dev/sdb
sudo pvcreate /dev/sdb1
sudo pvdisplay
sudo vgcreate vol /dev/sdb1
vgdisplay
sudo lvcreate —extents 100%FREE —name lvol0 vol
lvdisplay
sudo lvrename /dev/vol/lvol0 /dev/vol/app
sudo mkfs.xfs –f /dev/vol/app
sudo mount –o,rw /dev/vol/app /app
sudo vim /etc/fstab
/dev/vol/app /app xfs defaults 0 0
vmkfstools -i /vmfs/volumes/datastore1/VM1/disk_1.vmdk -d zeroedthick /vmfs/volumes/datastore1/VM1/disk_1_new.vmdk
mysqladmin -u root password newpass
mysqladmin -u root -p oldpassword newpass
mysqladmin -u user-name -p oldpassword newpass
mysql -u root -p
update user set password=PASSWORD(«newpass») where User='ENTER-USER-NAME-HERE';
flush privileges;
quit
/etc/init.d/mysql stop
mysqld_safe —skip-grant-tables &
mysql -u root
use mysql;
update user set password=PASSWORD(«NEW-ROOT-PASSWORD») where User='root';
flush privileges;
quit
/etc/init.d/mysql stop
/etc/init.d/mysql start
mysql -u root -p
object network Internal_RDP_Server-1
host 192.168.1.1
nat (inside,outside) static interface service tcp 3389 -входящий порт-
object network Internal_RDP_Server-2
host 192.168.1.2
nat (inside,outside) static interface service tcp 3389 -входящий порт-
access-list inbound permit tcp any object Internal_RDP_Server-1 eq 3389
access-list inbound permit tcp any object Internal_RDP_Server-2 eq 3389
access-group inbound in interface outside
Add-EsxSoftwareDepot -DepotUrl C:\ESXi\HPE-6_5.zip
Get-EsxImageProfile
New-EsxImageProfile -CloneProfile HPE-ESXi-6.5.0-OS-Release-6* -Name "G7-ESXi"
Get-EsxImageProfile
Remove-EsxSoftwarePackage G7-ESXi hpe-smx-provider
Add-EsxSoftwareDepot -DepotUrl C:\ESXi\HPE-6_0.zip
Get-EsxImageProfile
Get-EsxSoftwarePackage | findstr smx
add-esxsoftwarepackage -imageprofile G7-ESXi -softwarepackage "hpe-smx-provider 600.03.11.00.9-2768847"
Export-EsxImageProfile -ImageProfile G7-ESXi -ExportToIso -filepath "C:\ESXi\G7-ESXi.iso"
dnf update -y
vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.5 CentOS repository list - created 2020-05-29 08:37 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
dnf makecache
dnf install -y MariaDB-server
systemctl enable --now mariadb.service
systemctl status mariadb.service
mariadb -u root
ЦитироватьWelcome to the MariaDB monitor. Commands end with ; or \g.Bye
Your MariaDB connection id is 4
Server version: 10.5.3-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
Set strong passwords for root and mysql users.
MariaDB [(none)]> alter user 'root'@'localhost' identified by 'Ahmer@1234';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> alter user 'mysql'@'localhost' identified by 'Ahmer@1234';
Query OK, 0 rows affected (0.001 sec)
Reload the privileges tables.
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
List available databases in MariaDB server.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.001 sec)
Exit from MariaDB Shell.
MariaDB [(none)]> exit
tail /var/log/syslog
tail -n 100 /var/log/syslog
tail -f /var/log/syslog
tail /var/log/syslog /var/log/Xorg.0.log
tail -f -s 5 /var/log/syslog
tail -q var/log/syslog /var/log/Xorg.0.log
tail -c 500 /var/log/syslog
tail -f /var/log/syslog | grep err
tail -f --retry /var/log/syslog | grep err
tail --follow=descriptor /var/log/syslog | grep err