时间:2021-07-01 10:21:17 帮助过:27人阅读
github: https://github.com/iwind/rockmongo
参考:https://blog.csdn.net/wkh___/article/details/83540713 (如果打开页面是php文件源码,注意补这个包并修改httpd配置)
php中添加mongo库文件
echo "extension=mongo.so" >> /etc/php.ini
项目文件放到httpd路径下,如果自定义修改httpd配置
# rockmongo域 cp -r /path/rockmongo /var/www/html/ # 独立项目 cp /path/rockmongo/* /var/www/html/
httpd配置添加
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .php5 AddType application/x-httpd-php-source .phps DirectoryIndex index.html index.htm index.php //增加对php的索引
重启
systemctl restart php-fpm
systemctl restart httpd
【mongoDB】Rockmongo + apache
标签:php文件 com detail ted rest bzip2 pen color star