- 博客(8)
- 收藏
- 关注
原创 安装torch失败 2020-12-05
错误:PS D:\Bringing-Old-Photos-Back-to-Life-master> pip install torch -i https://pypi.douban.com/simpleLooking in indexes: https://pypi.douban.com/simpleCollecting torch Downloading https://pypi.doubanio.com/packages/f8/02/880b468bd382dc79896eaec
2020-12-05 14:32:10 2383
原创 JAVA变量
export JAVA_HOME=/usr/local/javaexport JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
2020-12-05 14:29:08 77
原创 SCP
#!/usr/bin/expectset timeout 2400spawn scp -P 3669 /home/askdog/Wangguangyuan/Upload/release.zip askdog@121.43.169.146:/home/askdogexpect "password"send "CFeUG*ReatsC;X6!(LZYUkp*JKjh!&\r"expect eof
2020-12-05 14:28:45 121
原创 Kafka
创建话题bin/kafka-console-producer.sh --broker-list localhost:9092 --topic topicname删除话题bin/kafka-topics.sh --delete --zookeeper localhost:2181 --topic topicname删除kafka存储目录(server.properties文件log.dirs配置,默认为"/tmp/kafka-logs")相关topic目录;删除zookeeper "/bro.
2020-12-05 14:26:29 90
原创 Docker-MongoDB定时备份+设置cron计划(未部署)
#备份:docker exec -it mongo mongodump -o /data/db/dump/$(date +%Y-%-m-%-d-%H%M%S) #目录按天小时存储find /home/docker/volume/mongo/data/dump -type d -ctime +2 |xargs rm -rf #保留2天数据#恢复:#分库恢复docker exec -it mongo mongorestore -d ${dbname} /data/db/dump/${date}/${
2020-12-05 14:25:20 290
原创 PostgreSQL定时备份+设置cron计划(未部署)
备份:pg_dump -h 127.0.0.1 -p 5432 -U askdog -d askdog.web > /home/PGBackUp/askdog-$(date +%Y%m%d%H%M%S).sql #文件按天小时存储#pg_dump -h 127.0.0.1 -p 5432 -U askdogsync -d askdogsync > /home/docker/backup/askdogsync-$(date +%Y%m%d%H%M%S).sql #文件按天小时存储.
2020-12-05 14:24:49 202
原创 mongo集群(开发环境已部署,生产环境待部署)
第一步 编写Mongos的Dockerfile:FROM mongoEXPOSE 27017ENTRYPOINT ["usr/bin/mongos"]构建镜像:sudo docker build -t askdog/mongos .第二步 启动mongodb集群所需的Docker容器://创建副本集1 docker run --name rs1_srv1 -p 21117:27017 -d mongo --smallfiles --replSet rs1docker run --na
2020-12-05 14:24:01 177
原创 redis集群(本地测试通过,待部署)
启动redis容器docker run -d --name ad-redis1 -v /home/wanggy/redis/5000/:/data -v /etc/localtime:/etc/localtime:ro --net="host" redis redis-server /data/redis.confdocker run -d --name ad-redis2 -v /home/wanggy/redis/5001/:/data -v /etc/localtime:/etc/localtim
2020-12-05 14:22:52 211
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人