[[+content_image]]
V
V
VA2020-09-04 11:15:35
linux
VA, 2020-09-04 11:15:35

How to make a symlink (bitrix virtual machine)?

Good afternoon, there is a CentOS8 server (on the sde disk) on which the
virtual machine (on the same sde disk)

spoiler

[[email protected] ~]# lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 447.1G  0 disk /mnt/ssd1
sdb               8:16   0 447.1G  0 disk /mnt/ssd2
sdc               8:32   0   3.7T  0 disk /mnt/hdd1
sdd               8:48   0   3.7T  0 disk /mnt/hdd2
sde               8:64   0 238.5G  0 disk
├─sde1            8:65   0     1G  0 part /boot
└─sde2            8:66   0 237.5G  0 part
  ├─centos-root 253:0    0    50G  0 lvm  /
  ├─centos-swap 253:1    0  15.7G  0 lvm  [SWAP]
  └─centos-home 253:2    0 171.8G  0 lvm  /home



It is necessary to store the site on sda instead of sde

I move - mv /home/bitrix/ext_www/ to /mnt/ssd1/ext_www
I make a symlink - ln -s /home/bitrix/ext_www/site /mnt/ssd1/ext_www I

go to site.com on it opens a window with a link site.com and only after the transition throws on the site itself

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Andrey Barbolin, 2020-09-04
@dronmaxman

Why is ln -s /home/bitrix/ext_www/site /mnt/ssd1/ext_www ?
Maybe you need it like this ln -s /home/bitrix/ext_www /mnt/ssd1/ext_www ?

K
ky0, 2020-09-04
@ky0

Redirects and display by the web server of the site does not depend on symlinks - only on the config. If the files from his point of view are in the same place - the behavior will be identical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question