잡다한 자료
CentOS7, apm, iptables
돌비
2015. 5. 27. 15:02
* yum install libjpeg* libpng* freetype* gd-*
* yum install httpd
* yum install mysql mysql-server (이거 하니가 자동으로 mariadb 가 설치되더라)
* yum install php php-mysql
* 설치확인
rpm -qa httpd mariadb php
* apache 설정
vi /etc/httpd/conf/httpd.conf
User apache -> User nobody
Group apache -> Group nobody
ServerName ip적어라
CentOS7 부터는 iptables를 사용안하고, firewalld 방화벽 데몬을 사용함
다시 iptables 사용하는 방법은 아래와 같다
* firewalld 데몬중지, 재부팅해도 실행안되게 함
systemctl stop firewalld
systemctl mask firewalld
* iptables 패키지 설치
yum install iptables-services
* 재부팅시 자동실행
systemctl enable iptables
* iptables 시작
systemctl [stop | start | restart] iptables
* iptables 규칙 저장
service iptables save
반응형