Ubuntu
25 06 2015
Haeng Ho Kang | OS, Linux/Unix |
Ubuntu는 /bin/sh 가 dash 로 연결되 있다. 이걸 /bin/sh로 바꾸면 된다.
|
ls -al /bin/sh lrwxrwxrwx 1 root root 4 Feb 19 2014 /bin/sh -> dash |
이걸 바꾼다.
|
$cd /bin $sudo rm /bin/sh $sudo ln -s bash /bin/sh $ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jun 25 10:23 /bin/sh -> bash |
. /etc/init.d/functions ==> . /lib/lsb/init-functions success: command not found 이경우 ubuntu 는
|
log_success_msg OK, log_fail_msg FAIL로 변환 |
Ubuntu, shell
24 06 2015
Haeng Ho Kang | OS, Server, Linux/Unix, Web |
설치할 폴더 /app/하위
|
mkdir /app cd /app mkdir install cd install |
다운로드(위치 install폴더)
|
wget http://apache.mirror.cdnetworks.com//httpd/httpd-2.4.12.tar.gz wget http://apache.mirror.cdnetworks.com/apr/apr-1.5.2.tar.gz wget http://apache.mirror.cdnetworks.com/apr/apr-util-1.5.4.tar.gz wget http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-8.35.tar.gz |
압축해제(위치install폴더)
|
tar -xvzf httpd-2.4.12.tar.gz tar -xvzf apr-1.5.2.tar.gz tar -xvzf apr-util-1.5.4.tar.gz tar -xvzf pcre-8.35.tar.gz |
APR관련 파일 Httpd/srclib로 이동
|
mv ./apr-1.5.2 ./httpd-2.4.12/srclib/apr mv ./apr-util-1.5.4 ./httpd-2.4.12/srclib/apr-util |
의존 Package Install
|
apt-get install libssl-dev |
|
apt-get install libpcre3-dev |
PCRE 설치구성
|
cd pcre-8.35 ./configure --enable-unicode-properties=yes |
make make install cd ../httpd-2.4.12
|
./configure \ --prefix=/app/httpd-2.4.12 \ --enable-so \ --enable-rewrite \ --enable-proxy \ --enable-ssl \ --enable-mods-shared=all \ --enable-modules=shared \ --enable-mpms-shared=all \ --with-included-apr \ --with-included-apr-util |
설치 확인
|
cd /app/httpd-2.4.12/bin/ |
|
root@ip-172-31-23-3:/app/httpd-2.4.12/bin# ps -ef|grep httpd root 9368 1 0 00:55 ? 00:00:00 /app/httpd-2.4.12/bin/httpd -k start daemon 9369 9368 0 00:55 ? 00:00:00 /app/httpd-2.4.12/bin/httpd -k start daemon 9370 9368 0 00:55 ? 00:00:00 /app/httpd-2.4.12/bin/httpd -k start daemon 9371 9368 0 00:55 ? 00:00:00 /app/httpd-2.4.12/bin/httpd -k start |
서비스 등록
|
cp /app/httpd-2.4.12/bin/apachectl /etc/init.d/httpd |
. /lib/lsb/init-functions 서비스에 올리기위해(chkconfig 와 거의 동일) 설치 apt-get install […]
Ubuntu, Apache