justcode.ikeepstudying.com
Ubuntu: 安装MongoDB, Install MongoDB With Apache2, PHP 7.2 Support On Ubuntu 16.04 / 17.10 / 18.04 - Just Code
Step 1: Install Apache2 HTTP Server – 安装Apache2,如果已经安装,请略过 命令行安装 sudo apt update sudo apt install apache2 开启和关闭apache2的命令 sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service http://localhost 打开后,如果可以显示下图,说明安装成功 Step 2: Add MongoDB Repository 添加 MongoDB 源 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo …