陈显林-个人网站 Stay Hungry,Stay Foolish.

Mysql管理

连接数据库服务 客户端连接命令 mysql -uroot -p -- 回车后输入密码,或直接在p后面输入密码回车,但这样有泄露的风险 库操作

cxl cxl Published on 2025-03-11

同步工具:rsync

什么是rsync? rsync(remote sync)是一个用于在本地或远程系统之间同步文件和目录的工具。它通过只传输文件中发生变化的部分来减少数据传输量,从而大大提高同步效率。rsync还支持压缩、加密、权限保持等功能,是一个非常灵活和强大的工具。 rsync的工作原理 rsync通过比较源文件

cxl cxl Published on 2025-03-11

jar包启动脚本

#!/bin/bash NAME=app APP_NAME=test-$NAME.jar DEPLOY_DIR=`pwd` usage() { echo "Usage: app.sh [start|stop|restart|status]" exit 1 } is_e

cxl cxl Published on 2025-03-03

linux常用操作

安装上传下载工具 sudo apt install lrzsz 安装网络命令工具 sudo apt install net-tools

cxl cxl Published on 2025-02-28

python源

使用pip 直接指定源安装 使用pip安装包时,可以通过-i或--index-url选项来指定源。例如,如果你想从某个特定的PyPI镜像源安装包,可以这样做: pip install -i https://pypi.douban.com/simple some-package

cxl cxl Published on 2025-02-28

Anaconda安装

下载 官网下载页面地址,根据系统类型选择:https://www.anaconda.com/download/success 以ubuntu22为例,下载目前最新版本: https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_6

cxl cxl Published on 2025-02-28

系统镜像源

Ubuntu 配置路径 /etc/apt/sources.list 先备份源文件 cp /etc/apt/sources.list{,.backup} 清除源文件后或直接追加

cxl cxl Published on 2025-02-28

镜像资源

镜像站点 阿里云官方镜像站:https://developer.aliyun.com/mirror/ 华为开源镜像站:https://mirrors.huaweicloud.com/home

cxl cxl Published on 2025-01-11

linux时间

时间同步: 方法一:ntpdate 同步 ntpdate 命令是一种简单快捷的同步当前时间的方式,步骤如下: 打开终端输入以下三条命令: yum install -y ntp # 安装 ntp , 如果是 ubuntu 系统则为 apt install ntp ntpdate ntp3.a

cxl cxl Published on 2025-01-10

Git换行符问题

问题: 当提交代码执行 git add 命令时报关于换行符系统兼容性提醒:LF will be replaced by CRLF the next time Git touches it 处理: Git 有一个配置选项 core.autocrlf,它控制 Git 如何处理换行符: true: 在提交

cxl cxl Published on 2025-01-09
Previous Next