nginx 入門學習html
web服務器軟件前端
windows vue
apache 收費
lighthttp
公司的技術棧 收費版技術棧 apache web服務器 + java + tomcat應用服務器 + oracle + memcached + redhat 企業版linux + svn(代碼管理工具)java
開源的技術棧(路飛學城) nginx(負載均衡) + python(virtualenv) + uwsgi (python的應用服務器,啓動了10個進程處理django drf 請求)python
mysql (阿里雲的rds主從複製) +redis的主從賦值 +git +vue前端代碼服務器 +linux(阿里雲的centos7)mysql
curl -I 網站域名 能夠查看網站的響應頭信息 查看網站用了什麼服務器linux
1.yum解決編譯nginx所需的依賴包,以後你的nginx就不會報錯了nginx
yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel openssl openssl-devel -y
2.安裝配置nginx軟件,下載源代碼 wget -c https://nginx.org/download/nginx-1.12.0.tar.gzgit
3.解壓縮源碼,編譯且安裝 tar -zxvf nginx-1.12.0.tar.gz 切換源碼目錄 ./configure --prefix=/opt/nginx112/ make && make install web
4.進入nginx的工做目錄 cd /opt/ngin112/
5.查看gninx的工做目錄 [root@localhost nginx112]# ls conf 配置文件目錄 html 網頁根目錄,你的index.html就放在這裏,而後經過域名訪問 pythonav.cn/index.html html/index.html logs 日誌 sbin 存放nginx可執行命令的
6.定製本身的nginx網站 修改/opt/nginx112/html/index.html 這是nginx網頁根文件,清空內容寫入本身的html標籤
7.啓動nginx服務器 /opt/nginx112/sbin/nginx 直接回車執行
8.檢查nginx服務端口 ps -ef|grep nginx
9.經過windows訪問nginx web服務 瀏覽器 訪問http://192.168.13.79