Mac 에서 전단 프로젝트 를 알 리 클 라 우 드 centos (nginx 서비스) 에 배치 합 니 다.
ssh -l root ip
yum install gcc-c++
B. yum install -y pcre pcre-devel
C. yum install -y zlib zlib-devel
D. yum install -y openssl openssl-devel
E. wget -c https://nginx.org/download/nginx-1.12.0.tar.gz
(wget 이 설치 되 어 있 지 않 으 면 사용 yum install wget
설치) tar -zxvf nginx-1.12.0.tar.gz
cd nginx-1.12.0
./configure
make
make install
whereis nginx
nginx:
cd /usr/local/nginx/sbin/
./nginx
./nginx -s stop
./nginx -s quit
./nginx -s reload
: , 80
:
net-tool :yum install net-tools
ps aux|grep nginx
nginx , quit nginx
, sill pid
80 , nginx :
cd /usr/local/nginx/conf/
vi nginx.conf
i,
80 83
esc :wq
nginx
./nginx -s quit
./nginx
nginx :
listen 83;
server_name localhost;
location / {
root ( :/data/html/);
index index.html;
}
:
location /system {
alias ( :/data/html-sys/);
index index.html;
}
참고:
https://www.cnblogs.com/boony...
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
CentOS 7에서 OpenLDAP 서버 설치 및 구성LDAP(Lightweight Directory Access Protocol)는 ID와 개체를 쉽게 관리할 수 있는 디렉터리 서비스입니다. Windows 세계에서 서버는 일반적으로 Active Directory입니다...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.