如何在 CentOS 7 用 cPanel 配置 Nginx 反向代理

如何在 CentOS 7 用 cPanel 配置 Nginx 反向代理,第1张

注:本配置环境在CentOS下实现,其他方法请参考官方帮助文件

一、安装Nginx软件

Nginx官方网站:http://nginx.org

我们使用yum安装(配置和升级方便),需要配置官方的yum源,Nginx官方源配置提供的配置方法如下:

1.创建一个更新源

#vim /etc/yum.repos.d/nginx.repo

2.加入如下内容:

[nginx]

name=nginx repo baseurl=http://nginx.org/packages/OS/EOSRELEAS/$basearch/

gpgcheck=0

说到cPanel,懂的人都知道玩意得研究研究。

ISO安装 http://layer2.cpanel.net/CentOS-5.4-i386-cPanel.iso

脚本安装 wget http://httpupdate.cpanel.net/latest

perl安装 http://layer2.cpanel.net/perl588installer.tar.gz

安装文档 http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WebHome

直接装ISO,装好启动之后连接网络,执行tail -f /var/log/cpanel-install*等待安装完毕即可。

To monitor the installation process please run:

tail -f /var/log/cpanel-install*

[root@cPanel ~]# tail -f /var/log/cpanel-install*

==>/var/log/cpanel-install-autoinstaller.log <==

Starting CentOS system update

==>/var/log/cpanel-install-thread0.log <==

==>/var/log/cpanel-install-thread1.log <==

Broadcast message from root (Wed Aug 25 22:24:05 2010):

Finished CentOS system update, starting cPanel installation

==>/var/log/cpanel-install-autoinstaller.log <==

Finished CentOS system update, starting cPanel installation

==>/var/log/cpanel-install-thread0.log <==

cPanel install started at: Wed Aug 25 10:27:54 2010!

==>/var/log/cpanel-install-thread1.log <==

cPanel install started at: Wed Aug 25 10:27:54 2010!

Broadcast message from root (Wed Aug 25 10:27:59 2010):

cPanel installation Complete

==>/var/log/cpanel-install-autoinstaller.log <==

cPanel installation Complete


欢迎分享,转载请注明来源:夏雨云

原文地址:https://www.xiayuyun.com/zonghe/143055.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-03-19
下一篇2023-03-19

发表评论

登录后才能评论

评论列表(0条)

    保存