This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Просмотреть нужный для блокирования диск | |
fdisk -l | grep Disk | |
Disk /dev/sda: 25.5 TiB, 27999998050304 bytes, 54687496192 sectors | |
Disk /dev/sdb: 7.4 GiB, 7902068736 bytes, 15433728 sectors | |
Disklabel type: dos | |
Disk identifier: 0xe722ba24 | |
Disk /dev/mapper/fedora--server_backup01-root: 7.4 GiB, 7897874432 bytes, 154255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Выпуск сертификата тест | |
certbot certonly -d site1 --dry-run | |
# Выпуск сертификата Итоговый | |
certbot certonly -d www.site.ru -d site2.ru | |
# Тест перевыпуска всех сертификатов | |
certbot renew --dry-run | |
# Удаление сертификата |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Сбор информации | |
fdisk -l (дисковые разделы) | |
pvdisplay | |
lvdisplay | |
#Расширяем раздел | |
fdisk /dev/sda | |
p (list partitions) | |
d (delete partition) | |
2 (2 is for second partition. /dev/sda2 for example) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Способ | |
sting the Default Kernel | |
To find out the file name of the default kernel, enter a command as follows: | |
~]# grubby --default-kernel | |
/boot/vmlinuz-3.10.0-229.4.2.el7.x86_64 | |
To find out the index number of the default kernel, enter a command as follows: | |
~]# grubby --default-index | |
0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Тест скорости записи\чтения диска Linux | |
if должна указывать на созданный файл, а of куда нибудь в пустоту на устройство /dev/null | |
dd if=/dev/zero of=/tmp/test.img bs=1M count=1024 oflag=dsync | |
Такая команда создаст файл в 1 Гб размером и выведет скорость записи. | |
dd if=/tmp/test.img of=/dev/null bs=1M count=1024 | |
нужно сбросить дисковый кэш, иначе файл будет считан за секунду, а вам выведется скорость чтения в Gb/s. Это делается такой командой: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Узнать максимальное коллличество используемых подключений параметра в базе | |
$ mysql –u root –p | |
SHOW STATUS LIKE 'max_used_connections'; | |
-- Проверить максимальное коллличество подключений | |
# mysql -u root -p | |
mysql> show global variables like '%max_connections%'; | |
mysql> show global variables like '%open_files_limit%'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В система с systemd воспользоваться встроенным редактором для служб | |
systemctl edit mysql.service | |
[Service] | |
LimitNOFILE=2048 | |
systemctl daemon-reload | |
Если версия ОС без systemd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Ubuntu | |
sudo su | |
apt-get update | |
apt-get upgrade | |
apt-get install language-pack-ru | |
dpkg-reconfigure locales | |
dpkg-reconfigure keyboard-configuration | |
dpkg-reconfigure console-setup | |
echo 'FRAMEBUFFER=Y' >> /etc/initramfs-tools/initramfs.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Проверить, что есть папка /opt/icewarp/archive/m1/dvinaland.ru и провреить место | |
mkdir -p /opt/icewarp/archive/m1/dvinaland.ru | |
df -hT | |
Файл.система Тип Размер Использовано Дост Использовано% Cмонтировано в | |
10.2.30.3:/backup_archive nfs4 1,9T 1,8T 69G 97% /opt/icewarp/archive | |
2. Провести предварительную синхронизацию писем (подставить имя пользователя и ip сервера Kerio) |
OlderNewer