– php 설치

– php 설치 설치여부 확인 : yum list installed | grep php php 설치 : yum install php

apache 설치

– apache 설치 설치 여부 확인 : yum list installed | grep http 설치 : yum install httpd apache port 구동 확인 : netstat -lntp apache 실행 : /usr/sbin/apachectl start 안되면 /etc/init.d/httpd start 데몬의 정상적 실행확인 : netstat -lntp

mysql root recover

Step # 1 : Stop mysql service # /etc/init.d/mysqld stop Output: Stopping MySQL database server: mysqld./ Step # 2: Start to MySQL server w/o password: # mysqld_safe –skip-grant-tables & Output: [1] 5988 Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[6025]: started Step # 3: Connect to mysql server using mysql client: # mysql -u root… Read More »

iptables 192.168.0.10 만 ftp 접속 허용하기

[ 예: 192.168.0.10 만 ftp 접속 허용하기 ] 설정 전 iptables 에 21번 port 가 open 되어있으면 안됩니다. 방법 1) 명령어 # iptables -A INPUT -s 192.168.0.10 -p tcp –dport 21 -j ACCEPT 방법 2) 룰셋 수정 /etc/sysconfig/iptables -A RH-Firewall-1-INPUT -s 192.168.0.10 -p tcp –dport 21 -j ACCEPT

con_cursor cursor for SELECT ~

DB 데이타 일관 처리 프로세서

vi /etc/sysconfig/iptables

[root@localhost ddd]# vi /etc/sysconfig/iptables # Generated by iptables-save v1.3.5 on Sun Jul 29 05:39:42 2012 *nat : PREROUTING ACCEPT [3465:769364] : POSTROUTING ACCEPT [194:11943] : OUTPUT ACCEPT [193:11903] -A POSTROUTING -s 192.168.122.0/255.255.255.0 -d ! 192.168.122.0/255.255.255.0 -p tcp -j MASQUERADE –to-ports 1024-65535 -A POSTROUTING -s 192.168.122.0/255.255.255.0 -d ! 192.168.122.0/255.255.255.0 -p udp -j MASQUERADE –to-ports 1024-65535 -A… Read More »

sudo iptables -L 세팅없는 경우

root@ubuntu:~# sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination

DB connect

SMTP Error 500

SMTP Error 500 : The last command sent by your server was not recognized as a valid SMTP or ESMTP command, or is not formatted in the way the server expected. This includes situations where the command is too long. Note that commands that are recognized, but not implemented, are handled by different status messages… Read More »

iptables Basic Commands

ufw(uncomplicated firewall) 방화벽 설정

Ubuntu 는 앞에 sudo 입력 설치:  apt-get -y install ufw 활성화 :  ufw enable 비활성화: ufw disable 전부막음: ufw default deny 전부허용: ufw default allow 서비스이름으로 허용 :  ufw allow http sudo ufw allow ssh sudo ufw allow http sudo ufw allow ftp sudo ufw allow mysql 막음 :ufw deny http 포트허용 :ufw allow 80… Read More »