Author: cxl

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

Jenkins远程部署脚本

#前提是设置了服务器SSH免密登录 # WORKSPACE变量是jenkins环境内置的 REMOTE_USER="root" # 远程服务器用户名,真实环境不建议直接使用root REMOTE_HOST="myserver" # 远程服务器地址 REMOTE_DIR="/dat

cxl cxl Published on 2024-12-25

华为 MatePad Pro 13.2 英寸平板新增 SIM 卡版本,12GB+512GB 定价 7499 元

IT之家 4 月 8 日消息,华为 MatePad Pro 13.2 英寸平板于 2023 年 9 月发布,官方日前悄悄上架了 SIM 卡版本,12GB+512GB 首发价 7499 元。

cxl cxl Published on 2024-04-09
Previous Next