systemctl disable firewalld && systemctl stop firewalld
##selinux disabled하기
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
localectl set-locale LANG=ko_KR.utf8
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-Extras.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-HighAvailability.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-NFV.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-Plus.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-PowerTools.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-RT.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-ResilientStorage.repo
####디폴트 환경변수####
echo " " >> /etc/profile
echo "####default PATH#####" >> /etc/profile
echo "export PATH=/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" >> /etc/profile
echo "#####################" >> /etc/profile
echo "" >> /etc/bashrc
echo "alias vi='vim'" >> /etc/bashrc
echo "" >> /etc/bashrc
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf install -y yum-utils
dnf module list php
dnf module reset -y php
dnf module install php:remi-7.2
dnf module install php:remi-7.3
dnf module install php:remi-7.4
dnf module install php:remi-8.0
dnf module install php:remi-8.1
dnf module install php:remi-8.2
dnf install -y php-bcmath php-bz2 php-cgi php-cli php-curl php-dba php-enchant php-fpm php-gd php-gmp php-imap php-intl php-json php-ldap php-mbstring php-mysql php-odbc php-opcache php-pgsql php-pspell php-readline php-snmp php-soap php-sqlite3 php-tidy php-xml php-xmlrpc php-xsl php-zip php
# dnf install -y php-bcmath php-bz2 php-cgi php-cli php-curl php-dba php-enchant php-fpm php-gd php-gmp php-imap php-intl php-json php-ldap php-mbstring php-mysql php-odbc php-opcache php-pgsql php-pspell php-readline php-snmp php-soap php-sqlite3 php-tidy php-xml php-xmlrpc php-xsl php-zip php
'WEB & WAS > PHP' 카테고리의 다른 글
PHP-FPM 이란? (0) | 2023.09.20 |
---|---|
Nginx 연동 PHP-FPM 설치 (8.2) (0) | 2023.04.09 |
PHP 7.3~7.4 sqlsrv 모듈 설치 (0) | 2023.03.26 |
PHP curl 모듈에 openssl 연동 (0) | 2023.03.26 |
phpmysql 연동 php파일 (0) | 2023.03.17 |
댓글