[root@localhost ~]# ls anaconda-ks.cfg LAMP.sh [root@localhost ~]# cd /usr/local/src/ [root@localhost src]# ls apr-1.7.0.tar.bz2 httpd-2.4.46 mariadb-10.5.5-linux-x86_64.tar.gz php-7.4.7.tar.gz apr-util-1.6.1.tar.bz2 httpd-2.4.46.tar.bz2 php-7.4.7 wordpress-5.4.2-zh_CN.tar.gz [root@localhost ~]# cat LAMP.sh #!/bin/bash SRC_DIR=/usr/local/src NAME="mariadb-10.5.5-linux-x86_64.tar.gz" MYSQL="mariadb-10.5.5-linux-x86_64" FULL_NAME=${SRC_DIR}/${NAME} DATA_DIR="/data/mysql" RURPLE="