在我们自己的购买的服务器环境中,一般是买的1g的内存,但是当服务器里面的东西装的比较多的时候就会导致内存不够用了,这个时候可以通过增加虚拟内存来夸大内存容量。
¶设置
0、查看内存使用情况
1 | $ free -m |
1、检查 Swap 空间,先检查一下系统里有没有既存的 Swap 文件
在我们自己的购买的服务器环境中,一般是买的1g的内存,但是当服务器里面的东西装的比较多的时候就会导致内存不够用了,这个时候可以通过增加虚拟内存来夸大内存容量。
0、查看内存使用情况
1 | $ free -m |
1、检查 Swap 空间,先检查一下系统里有没有既存的 Swap 文件
要把Windows的共享文件夹挂载到Ubuntu系统的电脑里面,使用命令
1 | sudo mount -t cifs //<ip or host>/<source folder> <destiny folder> -o username='xxx'',password='xxx',vers=2.0 |
可以,但是使用密码文件
1 | sudo mount -t cifs //<ip or host>/<source folder> <destiny folder> -o credentials=/xxx/.smbcredentials,vers=2.0 |
发现.gitignore
里面条目顺序是有意义的。
1 | *.c |
则!
的几项生效
1 | $ git status |
如果反过来
首先将Fork源增加到分支的remote url里面,
1 | git remote add upstream git@github.com:microsoft/qlib.git |
然后pull --rebase
1 | git pull --rebase upstream main |
再reset hard
。
Nvidia现在要求安装CuDNN和NICC都得登录Nvidia Developer网站,国内巨慢。药丸。
1 | sudo -i # 切换root权限 |
1 | apt install libnccl2=2.15.5-1+cuda11.8 libnccl-dev=2.15.5-1+cuda11.8 |
为了解决使用Arctic[1] MongoDB的日志里出现
1 | SASL SCRAM-SHA-1 authentication failed for myAdminUser on admin from client 192.168.3.100:9560 ; UserNotFound: Could not find user "myAdminUser" for db "admin" |
错误的问题,参考了数个连接(包括StackOverflow[2]),都提示要将authSchema.currentVersion
从5
改成3
。照做以后就杯具了,mongod
服务完全打不开了,提示错误
1 | This server is using MONGODB-CR, an authentication mechanism which has been removed from MongoDB 4.0. In order to upgrade the auth schema, first downgrade MongoDB binaries to version 3.6 and then run the authSchemaUpgrade command. See http://dochub.mongodb.org/core/3.0-upgrade-to-scram-sha-1 |
Protobuf
依赖CMake
、Git
、Abseil
和zlib
(可选)。前两者都是常用的工具,略过,这里详述后两者。
在import scipy.stats
的时候报警告:
1 | Python 3.9.12 (main, Apr 5 2022, 06:56:58) |
这个的原因之一是pip在升级numpy,scipy的时候(pip install -U numpy scipy
),对旧的package的删除可能不干净的问题。需要多次用uninstall
直至无残留:
问题在于Ubuntu 22.04开始移除了libssl1.1的支持。所以需要先安装libssl1.1
1 | wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb |
然后将18.04 boinic的source加入source list
1 | wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - |
更新apt并安装