웹 서버랑 클라이언트-브라우저 사이
브라우저는 원한다!
"HTML을!" 그러나 직접 읽어올 수 없다.
그래서 요청한다
URL의 형태로! HTML을
웹 서버는 준다!
"HTML을" HTTP 약속 (프로토콜, 통신 규약)을 통해서
언제나, 안전하게, 빠르게. HTML을
RMH
Claire Keane
Sade Olutola

Kaledo Art
No title available

if i look back, i am lost
Xuebing Du

ellievsbear
we're not kids anymore.
i don't do bad sauce passes

Origami Around

★
Alisa U Zemlji Chuda
DEAR READER

PR's Tumblrdome
wallacepolsom
Misplaced Lens Cap
Monterey Bay Aquarium

titsay
2025 on Tumblr: Trends That Defined the Year
seen from United Kingdom
seen from United States

seen from Serbia
seen from Malaysia

seen from Malaysia

seen from United Kingdom

seen from Argentina

seen from United States

seen from Australia

seen from United States

seen from Indonesia

seen from United States

seen from Türkiye

seen from Canada
seen from Argentina
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States
@mite-rva
웹 서버랑 클라이언트-브라우저 사이
브라우저는 원한다!
"HTML을!" 그러나 직접 읽어올 수 없다.
그래서 요청한다
URL의 형태로! HTML을
웹 서버는 준다!
"HTML을" HTTP 약속 (프로토콜, 통신 규약)을 통해서
언제나, 안전하게, 빠르게. HTML을
Nginx 포트 여러 개 사용하기 (2개!)
Nginx는 기본적으로 포트 3000을 쓰는데 (예제 학습 전까진 아마 8080)
나는 9223을 써보고 싶었다.
하지만 완벽하게 실패하였다. (읭)
이유는 기본 설정이 3000만 listen 하도록 되어있기 때문.
(참고 링크: https://velog.io/@dong3789/nginx-%ED%8F%AC%ED%8A%B8%EB%B3%84-%EB%8F%84%EB%A9%94%EC%9D%B8%EC%9D%84-%EB%8B%AC%EC%95%84%EB%B3%B4%EC%9E%90)
sudo nano /opt/homebrew/etc/nginx/nginx.conf
해서 (권한 있으면 걍 고치거나)
아래처럼 하면 된다 ( 포트 추가 )
참고로 M2 Mac 기준.
직접 쓰다가 죽는줄 알았네. 3시라니 흑흑.
그래도 뿌듯하다.
웹 페이지마다 어떤 건 3000만 쓰고, 어떤 건 9223만 쓰도록도 해보고 싶은데 그건 다음에 하고.
보기에 안 좋아도 코드 그대로 붙이면 아래랑 같다.
server { listen 9223; server_name sena.com; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } #error_page 404 /404.html; #redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:9223 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
이게 뭐야
Nginx
참고: https://smali-kazmi.medium.com/setup-nginx-node-js-on-mac-os-x-b31eda9f7d5d
how to read (pronounce): 엔진 엑스
Nginx currently supports 7 scripting languages: Go, Node.js, Perl, PHP, Python, Ruby, and Java Servlet Containers
(the last is an experimental module)
It enables you to run applications written in different languages on the same server.
how to install: https://dev.to/logrocket/how-to-run-a-node-js-server-with-nginx-588
how to install by M2: 1. homebrew install with terminal commands
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. PATH for homebrew: (2-lines)
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/nika/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
3. run:
To start nginx now and restart at login:
brew services start nginx
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/nginx/bin/nginx -g daemon\ off\;
[like this] nginx, "http://localhost:8080/"
4. stop
nginx -s stop
5. 에러 확인:
nginx -t
nginx: the configuration file /opt/homebrew/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /opt/homebrew/etc/nginx/nginx.conf test is successful
6. 리로드:
nginx -s reload
MacOS zsh commands
echo $SHELL
/bin/zsh
대소문자 구분은 중요하다*
nodeJS
Node.js v20.10.0 to /usr/local/bin/node
npm v10.2.3 to /usr/local/bin/npm
/usr/local/bin is in your $PATH.
영단어 정리
deploy 배포
versatile 다재다능한, 다용도의
텀블러 기능 정리
채팅 기능 - '누구누구:'와 같이 쓰며 처음 두 줄만 인식된다.
더보기 링크 기능 - '상세 기능'에 해당하는데, 글쓰기 중 이 기능을 한 번 쓸 수 있다. 이 기능은 '더보기 링크' 이후의 내용을 '계속 보기'로 가려준다.
데이터베이스란 (mysql) (목차)
데이터베이스란 데이터의 집합이다.
데이터베이스 (mysql) 트랜잭션
ACID란?
↳ 정의, (부가정의,) 하드웨어적 원리, 구성법, 트랜잭션 vs 파일 시스템 작업
타 데이터베이스와 호환되는 기능인가?
대처법
초장 - AppCoding for looks
애플리케이션 개발자 분야를 공부한지 2달쯤 든 생각은 '클라이언트는 내 길이 아냐'였다. ……즐겁긴 하지만, 심히 노가다라는 인상을 받았다. (웹의 일부라는 느낌도 들었고) 해서 한 학기 동안 배운 것을 정리하면서 동시에 자습하고 있는 서버 부분을 녹여내려고 한다.