当前位置: 首页 > wzjs >正文

优班图搭建网站淘宝店铺怎么免费推广

优班图搭建网站,淘宝店铺怎么免费推广,慈溪公司做网站,电子商务网站系统建设进度安排目录 1 下载MongoDB软件 2 操作系统信息 3 MongoDB 软件安装步骤 4 编写mongodb的配置文件 5 生成keyfile 6 使用mongo用户启动mongodb服务 7 设置开机启动(mongo用户) 8 安装MongoDB shell,因为MongoDB-6.0.24 已经移除mongo命令 1 下载MongoDB软件 https:…

目录

1 下载MongoDB软件

2 操作系统信息

3 MongoDB 软件安装步骤

4 编写mongodb的配置文件

5 生成keyfile

6 使用mongo用户启动mongodb服务

7 设置开机启动(mongo用户)

8 安装MongoDB shell,因为MongoDB-6.0.24 已经移除mongo命令


1 下载MongoDB软件
https://www.mongodb.com/try/download/community

2 操作系统信息
root@u24-mongo-80:~# cat /etc/issue
Ubuntu 24.04.2 LTS \n \l

3 MongoDB 软件安装步骤
adduser mongo

tar -xf mongodb-linux-x86_64-ubuntu2204-6.0.24-rc0.tgz 
mv mongodb-linux-x86_64-ubuntu2204-6.0.24-rc0 /usr/local/mongodb-6.0.24
mkdir /usr/local/mongodb-6.0.24/{auth,conf} -p
mkdir /mongodb/{data,log} -p
chown -R mongo:mongo /mongodb/data
chown mongo:mongo /usr/local/mongodb-6.0.24 -R


#配置root和mongo用户环境变量
echo 'export PATH=$PATH:/usr/local/mongodb-6.0.24/bin' >>~/.bashrc 
echo 'export PATH=$PATH:/usr/local/mongodb-6.0.24/bin' >>/home/mongo/.bashrc 


4 编写mongodb的配置文件
cat > /usr/local/mongodb-6.0.24/conf/mongodb.conf <<EOF
#系统日志有关
systemLog:
  destination: file
  logAppend: true
  path: /mongodb/log/mongdb.log

#数据库存储有关
storage:
  dbPath: /mongodb/data
  journal:
    enabled: true
  wiredTiger:
    engineConfig:
      directoryForIndexes: true
      configString: cache_size=1G

#进程
processManagement:
  fork: true    #后台运行
  pidFilePath: /mongodb/log/mongodb.pid
  timeZoneInfo: /usr/share/zoneinfo


#网络
net:
  port: 27017
  bindIp: 0.0.0.0
  maxIncomingConnections: 1000
  unixDomainSocket:
    enabled: true
    pathPrefix: /mongodb/data
    filePermissions: 0700

#安全
security:
  keyFile: /usr/local/mongodb-6.0.24/auth/keyfile.key
  authorization: enabled
EOF


5 生成keyfile
openssl rand -base64 512 >/usr/local/mongodb-6.0.24/auth/keyfile.key
chmod 600 /usr/local/mongodb-6.0.24/auth/keyfile.key


6 使用mongo用户启动mongodb服务
 su - mongo -c '/usr/local/mongodb-6.0.24/bin/mongod -f /usr/local/mongodb-6.0.24/conf/mongodb.conf'


7 设置开机启动(mongo用户)
vi /etc/rc.local
#! /bin/bash
su - mongo -c '/usr/local/mongodb-6.0.24/bin/mongod -f /usr/local/mongodb-6.0.24/conf/mongodb.conf'

#授予可执行权限
chmod +x /etc/rc.local

8 安装MongoDB shell

因为MongoDB-6.0.24 已经移除mongo命令
下载对应操作系统版本
https://www.mongodb.com/try/download/shell
dpkg -i mongodb-mongosh_2.5.1_amd64.deb 

#登录测试
mongosh


#关闭数据库
>db.shutdownServer()
或者
su - mongo -c '/usr/local/mongodb-6.0.24/bin/mongod -f /usr/local/mongodb-6.0.24/conf/mongodb.conf --shutdown'


文章转载自:

http://IztsULl1.smrty.cn
http://I8DMFAt2.smrty.cn
http://xj36gw7T.smrty.cn
http://1EKOcyLI.smrty.cn
http://QEjGxPgV.smrty.cn
http://u7U9qFL8.smrty.cn
http://vsd90AWm.smrty.cn
http://C0rHGyxK.smrty.cn
http://fvvEgy2t.smrty.cn
http://ZvmXxG46.smrty.cn
http://psNR4QjN.smrty.cn
http://o9nnOvrY.smrty.cn
http://ewNJPoyI.smrty.cn
http://9qmTqkb4.smrty.cn
http://hP4irJL9.smrty.cn
http://NHOAAHl3.smrty.cn
http://3ERVmCTz.smrty.cn
http://BG2AFfUZ.smrty.cn
http://dj6RkcsK.smrty.cn
http://u9YHzAvX.smrty.cn
http://0pskpRhi.smrty.cn
http://QdoCWpmc.smrty.cn
http://kuhUqJEc.smrty.cn
http://ccVWRvYL.smrty.cn
http://XTGQZFiG.smrty.cn
http://LuQSv8lz.smrty.cn
http://Datf8GWW.smrty.cn
http://mC69hdgZ.smrty.cn
http://d8bfvIvE.smrty.cn
http://HvyUAtEk.smrty.cn
http://www.dtcms.com/wzjs/668073.html

相关文章:

  • 申请网站域名定制网页制作公司
  • 服务周到的网站建设做类似淘宝网站怎么做
  • 怎么做网站埋点织梦可以做哪些类型型网站
  • 北京网络维护公司网站优化比较好用的软件
  • 网站建设 百科南开区网站建设公司
  • 临沂网站建设公司全国同学录网站建设
  • 漂亮网站织梦网站后台怎么登陆
  • 上海手机网站开发价格wordpress转为app
  • 企业建设网站需要什么资料wordpress开启用户登录
  • 河南外贸网站建设wordpress改网站logo
  • 做网站应该掌握的技术互联网站备案登记表
  • 网站免费申请注册2022营业执照年审
  • 为什么要建设个人网站word模板免费下载
  • php做的购物网站网站开发公司东莞
  • 南昌住房建设局网站网站如何做电脑和手机app
  • 莱西网站建设网络营销推广方法和应用场景
  • 施工企业资质划分如何做自己网站的seo
  • 资阳市网站建设成都旅游景点大全排名
  • 类似一起做网店的网站vs和php哪个做网站好
  • 最好的医疗网站建设北京值得去的互联网公司
  • 上海联通 网站备案wordpress转为app
  • 福建西南建设有限公司网站网易企业邮箱登陆入口官网
  • 设计类的网站和简介郑州app软件定制
  • php源码 个人网站华为云云速建站教程
  • 做智能网站系统下载地址在线代理网页浏览
  • wordpress 公司网站 模板 下载国内外网站网站
  • 校园网上零售网站建设方案北京网站建设模板
  • 电子商务安全问题 网站权限管理腾讯企业邮箱免费注册入口
  • 西安建站费用网站维护合同范本
  • 公众号网站制作全球速卖通入驻条件