web
ip 설정
selinux 설정
yum install -y httpd
vi /etc/httpd/conf/httpd.conf 164 index.php 변경
yum install -y epel-release yum-utils
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php73
yum install -y php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --reload
php 파일 이동 및 변경
systemctl enable --now httpd
db
ip 설정
selinux 설정
yum install -y http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
vi /etc/yum.repos.d/mysql-community.repo 5.7버전 gpg값 0으로 변경
yum install -y mysql-community-server
firewall-cmd --permanent --add-port=3306/tcp
firewall-cmd --reload
systemctl enable --now mysqld
cat /var/log/mysqld.log | grep password 패스워드 확인
mysql_secure_installation 설정 변경
mysql -uroot -pIt12345!
grant all privileges on *.* to 'root'@'%' identified by 'It12345!'
create database test;
create database member;
use member;
create table member (no int not null, id varchar(30) not null, name varchar(30) not null, phone varchar(30) not null, address varchar(100) not null);
'Linux' 카테고리의 다른 글
리눅스 커널(Kernel), 쉘(Shell) (0) | 2024.03.27 |
---|---|
vi 편집기 명령어 (2) | 2024.03.27 |
Linux Rocky9 Loadbalancer, Loadbalancer를 이용한 wordpress, mysql 구축 (0) | 2023.09.18 |
Linux Rocky9 Wordpress, mysql (0) | 2023.09.18 |
Linux Rocky9 기본설정, dhcp, vsftpd, dns, http, mail (1) | 2023.09.18 |