dpkg -l| grep apach
TA는 Apach 설치시 Compile 해서 올린다.
apt-get으로 설치하면 무겁기도 하고 옵션을 활용한 설치가 어렵다.
* apache comple option
./configure
make
make install
NGINX
c10k problem: 동시 10명은 되야하지 않나..
NGINX
3가지 버전 (NGINX, Plus Standard, Plus Premium)
Googling 이나 메뉴얼이 잘 안된다?
lsb_releas -a (ubuntu 버전 보기)
LTS가 붙는 것들이 있다. LTS는 Ubuntu 진영에서 계속 관리하는 것이다.
ubuntu@ip-10-28-50-32:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
ubuntu@ip-10-28-50-32:~$ pstree
init─┬─acpid
├─atd
├─cron
├─dbus-daemon
├─dhclient
├─7*[getty]
├─nginx───4*[nginx]
├─rsyslogd───3*[{rsyslogd}]
├─sshd───sshd───sshd───bash───pstree
├─systemd-logind
├─systemd-udevd
├─upstart-file-br
├─upstart-socket-
└─upstart-udev-br
ubuntu@ip-10-28-50-32:~$ ps -ef | grep nginx
root 2229 1 0 02:12 ? 00:00:00 nginx: master process /usr/sbin/nginx
www-data 2230 2229 0 02:12 ? 00:00:00 nginx: worker process
www-data 2231 2229 0 02:12 ? 00:00:00 nginx: worker process
www-data 2232 2229 0 02:12 ? 00:00:00 nginx: worker process
www-data 2233 2229 0 02:12 ? 00:00:00 nginx: worker process
ubuntu 2256 1332 0 02:13 pts/0 00:00:00 grep --color=auto nginx
Nginx 는 컴파일해서 설치하는것과 차이가 많이 난다.
Nginx 의 Process 수는코어랑 동일하게
connectin은 socket 개수랑 같도록
webserver 설치시 계정을 만드는것이 좋다.
useradd
passwd
'디지털 양피지 > AWS' 카테고리의 다른 글
GC, Heap Dump, Stack Dump (0) | 2016.08.11 |
---|---|
TA- Tomcat (0) | 2016.08.08 |
AWS - EC2 (0) | 2016.07.21 |
AWS - VPC 설정 (0) | 2016.07.19 |