1.安装apache httpd服务
yum install httpd –y
2.安装php(这里只是安装界面和简单的运行环境,运行可道云还会缺少php模块)
yum install php php-cli -y
php -m //可以查看相应的模块
3.下载kodexplorer4.40.zip,下载完成后移入相应的centos7相应的位置,如果没有执行第二步,是不会拥有/var/www/html文件夹的。
cd /var/www/html 文件目录的(玩过php的可以理解为,这个是启动服务访问php项目的位置)
将kodexplorer4.40.zip放入 /var/www/html文件夹下
unzip kodexplorer4.40.zip
mkdir kodexplorer
chmod -R 777 html/
chown -R apache:apache kodexplorer
将解压的kodexplorer里面的文件移入创建的kodexplorer(解压的文件有几个,一个一个执行即可)
mv app /var/www/html/kodexplorer/
service httpd restart 或者 systemctl restart httpd //如果安装了nginx可能报下面的错误
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
查看状态:
systemctl status httpd
一般都是80端口被占用,外面只需要修改httpd的端口即可
4.在浏览器输入相应的连接位置(此处做个说明,没有nginx也是可以运行的),输入如下:http://ip地址:80/kodexplorer //当然是用了80端口,nginx的端口需要修改,或者httpd的端口进行修改但是,进入该链接后,会发现出现爆红的错误,缺少php模块,加入下面命令,重启httpd就完成了:
yum install php-mbstring php-gd //下载缺少的模块
service httpd restart 或者 systemctl restart httpd
再次输入链接访问则正常了:
http://IP地址:80/kodexplorer
5.httpd端口号修改链接
https://jingyan.baidu.com/article/86112f136573352736978744.html
6.修改端口号:
find /etc/httpd/ -name *conf
vim /etc/httpd/conf/httpd.conf //找到Listen字段,将里面的80端口修改成你要访问的端口号