cPanel 安装方法

mac2022-06-30  99

. 如何安装cPanel/WHM?答:安装过程较长,建议使用screen或nohupscreen: yum -y install screen perlscreen -S cpanelcd /homewget -N http://httpupdate.cpanel.net/latestsh latest 2>&1 | tee ./cPanel-Install.log 复制代码 nohup: yum -y install perlcd /homewget -N http://httpupdate.cpanel.net/latestnohup sh latest > ./cPanel-Install.log 2>&1 & ----------------------------------------------------------------------------------------------- 搭好环境后,我们开始安装cPanel。cPanel的安装步骤如下:

1、ssh登陆服务器ssh root@IPchkconfig iptables off service iptables stop2、确定服务器主显IP地址curl -L http://cpanel.net/showip.cgi3、卸载冲突的软件yum groupremove “FTP Server” “GNOME Desktop Environment”"KDE (K Desktop Environment)” “Mail Server”"Mono” “Web Server” “X Window System” 4、安装screen软件yum install screen5、用screen软件创建一个名为cPanel的新窗口screen -S cpanel 6、进入home目录cd /home 7、用wget下载cPanel的安装脚本latestwget -N http://httpupdate.cpanel.net/latest 8、 执行安装脚本sh latest9、手动激活cPanel授权(非必要步骤)/usr/local/cpanel/cpkeyclt 

至此cPanel安装已经完成,同时也祝您在未来的工作中事事顺心!

注:在安装cPanel的时候,可能出现的一些问题:1、主机名问题:hostname localhost.localdomain2、重新执行安装:rm -rf /root/installer.locksh latest 执行安装脚本4、关闭SELinux编辑 /etc/selinux/config文件修改为 SELINUX=disabled

5、停用防火墙chkconfig iptables offservice iptables stop

6.无法和cpanel.net建立连接,ping提示ping: unknown host cpanel.net,这是dns的问题,修改/etc/resolv.conf,将nameserver 设置为 8.8.8.8

cpanel安装时出现这个错误Fatal! Perl must be installed before proceeding!可以先yum install perl然后再重新安装就可以了

转载于:https://www.cnblogs.com/alex-13/p/4277525.html

最新回复(0)