常用命令

发布时间 2024-01-08 00:04:35作者: qqhacktest

cmd执行mysql -u root -p输入密码root
jdbc的url格式jdbc:mysql://127.0.0.1:3306/springjdbc,端口号后面的是数据库名称。

在目录D:\javasoftware\python\Scripts下执行
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set global.trusted-host mirrors.aliyun.com
pip config set global.timeout 120

tornado简单示例
http://www.javashuo.com/article/p-qztdnwgf-hu.html
tornado proxy示例
https://hub.nuaa.cf/netxfly/passive_scan

mongodb操作
https://blog.csdn.net/qq_39905409/article/details/90813302
启动mongodb
mongod --dbpath "D:\program files\MongoDB\Server\7.0\data"

mongosh执行
use admin 切换数据库,有则切换,没有则会创建
show dbs显示数据库信息
db.createUser({user:"testAdmin",pwd:"123456",roles:[{role:"userAdmin",db:"security_detect"}]})
db.createUser({user:"admin",pwd:"123456",roles:[{role:"userAdminAnyDatabase",db:"admin"}]})
创建完后重启数据库
net stop MongoDB
mongod --dbpath d:\mongodb\data --auth
net start MongoDB
通过db.auth("testAdmin","123456")验证用户密码,结果为1,则表示成功。

show tables
db.url_info.find()
db.url_info.find({status:2})
安装
https://www.cnblogs.com/TM0831/p/10606624.html

celery
https://mp.weixin.qq.com/s?__biz=MzAxMjUyNDQ5OA==&mid=2653562766&idx=1&sn=86bd7e0a834722d7554c4a1341162a69&chksm=806e0933b7198025fd60ec95973ea187450ce6a8399f4891aad13fec951b24106cf95a85e21c&scene=27
redis
https://zhuanlan.zhihu.com/p/472045476
https://hub.nuaa.cf/tporadowski/redis/releases/tag/v5.0.14
启动redis
D:\javasoftware\Redis-x64-5.0.14目录下
redis-server.exe redis.windows.conf