一 玩轉物聯網 Nginx伺服器搭建

2021-08-04 04:43:56 字數 714 閱讀 3762

平台:阿里雲 centos 6.8 32位

搭建lnmp環境按照參考官方的文件。lnmp環境搭建

下面是實際操作中的一些記錄,流程主要按照上面的文件參考。

2,安全組設定。就是在阿里雲管理平台上,對http需要用到的80埠進行配置。

3,安裝nginx。這部分,按照nginx官方的說明來,如下

to set up the yum repository for rhel/centos, create the file named /etc/yum.repos.d/nginx.repo with the following contents:

[nginx]

name=nginx repo

baseurl=

gpgcheck=0

enabled=1

replace 「os」 with 「rhel」 or 「centos」, depending on the distribution used, and 「osrelease」 with 「6」 or 「7」, for 6.x or 7.x versions, respectively.操作。

4,安裝成功後,service nginx start,啟動nginx服務。

5,直接在瀏覽器輸入阿里雲的公網ip進行訪問。結果如下圖

windows git daemon 伺服器搭建

安裝git 使用不再贅 在資料夾repo 中執行git init新建git倉庫 在 repo目錄下執行git config local receive.denycurrentbranch updateinstead執行git config global sendpack.sideband false...

Docker中部署Nginx伺服器 快速搭建

搜尋nginx映象 docker search nginx拉取nginx映象 docker pull nginx建立容器,設定埠對映 目錄對映 在 root目錄下建立nginx目錄用於儲存nginx資料資訊 mkdir nginx cd nginx mkdir conf cd conf 在 ngin...

Nginx之 http伺服器集群 負載均衡搭建

8080伺服器的 搭建http伺服器 接收請求 server on request function request response 關閉連線 server on close function server fd 啟動伺服器 server start 8081伺服器的 搭建http伺服器 接收請求...