centos7 apm 설치
- 프로그래밍/서버(리눅스,centos)
- 2021. 7. 8.
1. apache 2.4.6
1) httpd 설치, 서비스 확인
yum install -y httpd
rpm -qa httpd
systemctl status httpd
2) 서비스 실행
systemctl start httpd
systemctl enable httpd
2. php 8.0.8
1) php설치
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --disable 'remi-php*'
sudo yum-config-manager --enable remi-php80
sudo yum -y install php php-{cli,fpm,mysqlnd,zip,devel,gd,mbstring,curl,xml,pear,bcmath,json}
7.4 설치 https://jjeongil.tistory.com/834
2)추가 패키지 설치는
yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y
sudo yum install php-xxx
3) php --version
3. mysql 설치
1) www.mysql.com/products/community/ 접속
2)
3) 레포지토리 설치
sudo yum install -y (붙여넣기)
4) 레포지토리 목록 확인
yum repolist enabled | grep "mysql.*"
5) mysql 목록 확인
yum search mysql
6)mysql 설치
yum install -y mysql-server
* GPG오류발생시 : https://stackoverflow.com/questions/71239450/gpg-keys-issue-while-installing-mysql-community-server
7) 버전확인
mysqld -V
8) 서버 시작
systemctl enable mysqld && systemctl start mysqld && systemctl status mysqld
9) 임시비번 확인
grep 'temporary password' /var/log/mysqld.log
10) mysql 접속
mysql -u root -p
11) mysql 비번 변경
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Pass1x32!';
'프로그래밍 > 서버(리눅스,centos)' 카테고리의 다른 글
proxy1 - centos7 + apache환경에 node.js 연동 (0) | 2021.07.12 |
---|---|
apm 설정(방화벽firewall/vsftpd/httpd.conf/mysql) (0) | 2021.07.09 |
[초간단] zerossl 에서 SSL 인증서 받고, 적용까지 (0) | 2021.06.25 |
centos6 ssl 인증키 (미완) (0) | 2021.06.24 |
서버 시간 동기화 (0) | 2021.06.09 |