yum -y install ntpsystemctl enable ntpdsystemctl start ntpdtimedatectl set-ntp yesntpdate -u cn.pool.ntp.orgln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtimewatch -n 1 ‘date’
mkdir /mnt/minio/{app,config,data,logs} -p
#!/bin/bashexport MINIO_ACCESS_KEY=circueexport MINIO_SECRET_KEY=circue@data/mnt/minio/app/minio server –config-dir /mnt/minio/config –console-address “:9001” \http://10. ...
文件系统了解及对比选型分布式文件系统(Distributed file system,DFS),或是网络文件系统(Network File System),是一种允许文件透过网络在多台主机上分享的文件系统,可让多机器上的多用户分享文件和存储空间。分布式文件系统解决的最大的问题是资源共享的问题,因此分布式文件系统最大的特点是多个客户端可以访问相同的服务端
专业名词缩写 全称 注释SDS Software Defined Storag 软件定义存储技术RAID Redundant Array of Independent Disk 磁盘阵列技术DG Disk Group 硬盘组VD Virtual Disk 虚拟磁盘(等效磁盘组)Mirroring - 镜像技术,又称为复制技术(Replication)Striping - 条带(可提供并行的数据吞吐能力)Erasure Code - 纠删码(提供高可用性和高速读写能力)RADOS Reliable,Autonomic,Distributed Object Store 可靠的自主的分布式对象存储OSD Object Storage Dev ...
1.2 Centos7
12wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpmrpm -ivh wandisco-git-release-7-1.noarch.rpm
或者12wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpmrpm -ivh wandisco-git-release-7-2.noarch.rpm
安装git 2.x
1yum install git -y
验证
1git --version
123456789101112docker run --rm -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register \--non-interactive \--executor "docker" \--docker-image alpine:latest \--url "http://andrewandbecky.top:30000/" \--registration-token "YR6LxsAsd6VF9X8CbLz2" \--description "first-register-runner" \--tag-list "docker,shared" \--run-untagged="true" \--locked="false" \--access-level="not_protected"
mongoexport mongodb://192.168.2.115/beike_house –collection beike_house_chengjiao –type=csv –fields title house_url title price average property property2 unit complete_time address want_sell days_to_sell fetch_time–out beike_chengjiao.csv
mongoexport -h 192.168.2.116 -d beike_house -c beike_house_chengjiao
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220 ...
任意嵌套123456789101112131415def flatten(input_list): output_list = [] while True: if input_list == []: break for index, i in enumerate(input_list): if type(i)== list: input_list = i + input_list[index+1:] break else: output_list.append(i) input_list.pop(index) break return output_list
两层嵌套123456789101112131415161718192021222324252627282930313233343536373839404142434445 ...
123456db.createUser({ user: "admin", pwd: "---------", roles: [ { role: "root", db: "admin" } ], mechanisms : ["SCRAM-SHA-1"] })
登录数据库
123/path/mongo --host=172.16.218.27 --port=27017 -u username -p 'XXX' --authenticationDatabase=admin
查看 admin库表
12345678> use admin> show tables> show tablessystem.userssystem.version
查看各表数据
1234> db.system.version.find().pretty(){ " ...
在制作U盘启动的时候,有时候需要用dd命令写入U盘.
12sudo dd if=./manjaro-deepin-18.0.2-stable-x86_64.iso of=/dev/sdc bs=4Msudo watch kill -USR1 $(pgrep ^dd)
查看硬盘情况
1df -h
1234567891011121314##df -h 文件系统 容量 已用 可用 已用% 挂载点dev 32G 0 32G 0% /devrun 32G 1.4M 32G 1% /run/dev/nvme0n1p1 938G 194G 696G 22% /tmpfs 32G 90M 32G 1% /dev/shmtmpfs 32G 0 32G 0% /sys/fs/cgrouptmpfs 32G 82M 32G 1% /tmp/dev/ ...