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