1. 설치 전 확인
rpm -qa | egrep "^(httpd|php|mysql)"
2. 설치
yum install httpd mysql mysql-server php php-mysql
3. 설치 후 확인
rpm -qa | egrep "^(httpd|php|mysql)" | sort -n
4. 서비스 등록 확인
service httpd status service mysqld status php -v
5. httpd 시작 및 설정
service httpd start
6. mysqld 시작테스트
servicce mysqld start
7. Mysql 패스워드 지정, 테스트
/usr/bin/mysqladmin -u root password '1234'
mysql -u root -p
8. 재부팅시 자동시작 설정
chkconfig --list | egrep "mysqld|httpd" chkconfig mysqld on chkconfig httpd on chkconfig --list | egrep "mysqld|httpd"
'개인공부 > CentOS, PHP, MySQL' 카테고리의 다른 글
Mysql(Mariadb) 한글깨짐 해결 (0) | 2017.12.22 |
---|---|
Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. (0) | 2017.12.18 |
Warning: mysqli::mysqli(): (HY000/2002): Permission denied in (0) | 2017.12.18 |
CentOS APM 설치 - 20171215 (0) | 2017.12.16 |
CentOS APM 버전확인 (0) | 2017.12.15 |