跳转到帖子

博客

报错如图显示:   问题解决: 修改app.yml文件,新增一条配置代码引入国内镜像源配置文件 - "templates/web.china.template.yml" 如果出现github.com报错的话需要设置一下代理 vim /etc/profile # 添加自己实际情况,添加以下内容 export https_proxy=http://user:passwd@IP:58963 export all_proxy=socks5://IP:38476 # 执行生效 source /etc/profile   配置socks5代理 git config --global http.proxy socks5 127.0.0.1:7890 git config --global https.proxy socks5 127.0.0.1:7890 配置http代理 git config --global http.proxy 127.0.0.1:7890 git config --glob
1. 准备工作 在开始之前,你需要先准备好以下工具和环境: 已安装MySQL数据库 已启用二进制日志(binlog) 已安装mysqlbinlog工具 2. 查找binlog文件 首先,你需要找到指定时间点的binlog文件。可以使用如下命令查看当前数据库的binlog文件列表: mysqlbinlog --base64-output=DECODE-ROWS --verbose --help 其中, --base64-output=DECODE-ROWS 用于解码binlog文件, --verbose 用于显示详细信息, --help 用于查看帮助信息。执行上述命令后,会输出类似如下内容: -rw-r----- 1 mysql mysql  1075 Sep 17 14:50 mysql-bin.000001 -rw-r----- 1 mysql mysql  1075 Sep 17 14:50 mysql-bin.000002 -rw-r----- 1 mysql
解决方案: 修改本地host文件,增加配置内容,绕过域名解析,达到加速的目的。 输入以下命令修改host文件: sudo vim /etc/hosts 在127.0.0.1 localhost下面添加: 199.232.69.194          github.global.ssl.fastly.net 140.82.113.3            github.com 185.199.108.154         github.githubassets.com  重启 systemd-resolved 服务,刷新DNS: sudo systemctl restart systemd-resolved 命令执行报错,请搜索自己版本的系统相应的刷新DNS命令。 特别说明(一定要看!!!): Github的IP地址是不断变化的,如果发现网站打不开了,可以获取新的IP地址修改hosts里面的内容,方式如下: 在网站https://ip.tool.chinaz.com/
E: Malformed entry 60 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read. 在阿里云上添加了Docker官方的下载源后,升级包(apt-get update)报出如上的错误. 没办法只好注释掉了其中的一个源路径: deb [arch=amd64] https://download.docker.com/linux/ubuntu stable 只留下了: deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable 再次更新源不再报错.
首先,我们需要停止Docker服务并备份所有必要的文件。 停止 sudo service docker stop 备份 sudo tar -czvf /tmp/docker.tar.gz /var/lib/docker 接下来,我们需要修改Docker配置文件。打开“/etc/docker/daemon.json”(如果文件不存在,请创建它)。在文件中添加以下配置: vim /etc/docker/daemon.json { "data-root": "/www/docker" } 注意:如果有多条配置信息的话需要在两条配置信息中加逗号“,” 这里,“data-root”指定了Docker的新安装路径。请将“/home/docker”替换为您想要使用的路径。 保存文件并重启Docker服务: sudo service docker start 现在,Docker已经使用新的安装路径。您可以验证操作是否成功,方法如下: docker info | grep "Docker
网易:http://hub-mirror.c.163.com 中科大镜像地址:http://mirrors.ustc.edu.cn/ 中科大github地址:https://github.com/ustclug/mirrorrequest Azure中国镜像地址:http://mirror.azure.cn/ Azure中国github地址:https://github.com/Azure/container-service-for-azure-china DockerHub镜像仓库: https://hub.docker.com/  阿里云镜像仓库: https://cr.console.aliyun.com  google镜像仓库: https://console.cloud.google.com/gcr/images/google-containers/GLOBAL (如果你本地可以翻墙的话是可以连上去的 ) coreos镜像仓库: https://quay.io/repository/  RedHat镜像仓库: https://access.redhat.com/contain
linux常用的解压和压缩命令如下: 1、.tar 解包: tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!) 2、.gz 解压1: gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩: gzip FileName 3、.tar.gz 和 .tgz 解压: tar zxvf FileName.tar.gz 压缩:tar zcvf FileName.tar.gz DirName 4、.bz2 解压1: bzip2 -d FileName.bz2 解压2: bunzip2 FileName.bz2 压缩: bzip2 -z FileName 5、.tar.bz2 解压: tar jxvf FileName.tar.bz2 压缩: tar jcvf FileName.tar.bz2 DirName
Nginx配置文件 server { listen 80; listen [::]:80; server_name www.cxcblog.com ; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/www.cxcblog.com; location ^~ / { proxy_pass http://0.0.0.0:1080; proxy_set_header Host $host; } include rewrite/none.conf; #error_page 404 /404.html; # Deny access to PHP files in specific directory
一、安装Docker 1.更新系统软件包 sudo apt update sudo apt upgrade 2.安装所需的依赖库和工具: sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release 3.添加Docker官方GPT秘钥: curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg 4.设置Docker稳定版存储库 echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/