서버 (4) 썸네일형 리스트형 Nginx Beginner’s Guide Configuration File’s Structure nginx modules are controlled by directives defined in /etc/nginx/nginx.conf. two types of directives simple directive: name and parameters separated by spaces and ends with ;, e.g., listen 8080; block directive: name and parameters separated by spaces and ends with a body of curly braces ({}) which contains additional instructions and directives, called a context, .. nginx basics installation docker pull nginx docker container run -it -p 80:80 --name nginx bash # or via any other ways appropriate to OS verify installation # version check nginx -v # running processes ps -ef | grep nginx # will give at least one master process and one worker process # http request curl localhost # will return a default index.html in `usr/share/html/` folders and files /etc/nginx/: default .. 우분투 16.04 nginx 1.10 에서 1.16으로 업그레이드 situation on Ubuntu 16.04 xenial, apt install nginx whose version is 1.10.3 # cannot find newer than 1.10. $ sudo apt-get install nginx=1.17.* Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.17.*' for 'nginx' was not found $ sudo apt-get install nginx=1.10.* Reading package lists... Done Building dependency tree Reading state information... .. 아파치 Install Apache sudo apt-get update sudo apt-get install apache2 Check default page after installation http://local.server.ip hostname -I | awk '{print $1}' Configure Firewall sudo ufw app list Available applications: Apache Apache Full Apache Secure CUPS Nginx Full Nginx HTTP Nginx HTTPS OpenSSH sudo ufw allow 'Apache' sudo ufw status Apache Configuration sudo systemctl stop apache2.service sudo.. 이전 1 다음