MySQL datetime 날짜로 select하기

MySQL datetime 날짜로 select하기 select 컬럼명 from 테이블명 where date(컬럼명)='2018-01-23'; select 컬럼명 from 테이블명 where 컬럼명 between '2018-01-20' and '2018-01-24'; 위의 2가지 방법이 가장 기본적인 쿼리이다.

APM 구버전 설치 (3) Apache

1.압축부터 푸렁


2.설치

$./configure --prefix=/usr/local/server/apache --enable-mods-shared=all --enable-so --enable-rewrite

$make && makeinstall

3.Apache를 자동 실행하기 위해 설정하고, chkconfig를 할 수 있게 하기 위해서 실행 스크립트 파일에 순서대로 추가한다.

$cp /usr/local/server/apache/bin/apachectl /etc/init.d/httpd
$vi /etc/init.d/httpd

#초반부에 추가

#!/bin/sh
#
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/server/apache/bin/apachectl
# config: /usr/local/server/apache/conf/httpd.conf
# pidfile: /usr/local/server/apache/logs/httpd.pid


$chkconfig --add httpd
$chkconfig --list | grep httpd
httpd          0:off     1:off     2:on     3:on     4:on     5:on     6:off


4.Apache의 환경을 설정한다.

$vi /usr/local/server/apache/conf/httpd.conf

:set number 명령어를 쳐 주면 숫자가 보인다.

118,119를 변경
User daemon > User nobody
Group daemon > Group nobody

150을 변경
#ServerName 192.168.100.2:80 > ServerName 너의주소:80

5.이제 Apache를 실행하면 된다.

$/etc/init.d/httpd start



It works!



댓글

이 블로그의 인기 게시물

3계층 구조( 3 Tier Architecture )

GET방식과 POST방식이란? ( PHP )

MySQL Index태우기가 뭐에요?