返回上级目录
返回上一级

CentOS 7 查看、开放端口

开放和关闭端口 开放 8888 端口 bash firewall-cmd --zone=public --add-port=8888/tcp --permanent 关闭 8888 端口 bash firewall-cmd --zone=public --remove-port=8888/tcp...

阅读全文

Git 使用方法

一、安装git git官网下载 二、建立仓库 本地仓库 例如我的本地项目在D:\data\code\C 1. 进入项目 bash cd d: cd D:\data\code\C 2. 变成Git可以管理的仓库 bash git init 3. 在GitHub (类似 Gitee 的代码托...

阅读全文

Linux美化终端 zsh+ohmyzsh

1. 安装 zsh 使用包管理器安装 zsh 将 zsh 设置成默认 shell: bash chsh -s /bin/zsh 2. 安装 oh-my-zsh 通过 curl 安装 oh-my-zsh: bash sh -c "$(curl -fsSL https://raw.githubuser...

阅读全文

SSH使用小技巧

更改root密码 将password更改为所需的密码 1. 修改密码 bash echo root:password |sudo chpasswd root 2. 开启root登录 bash sudo sed -i 's/^\?PermitRootLogi...

阅读全文

Ubuntu安装C语言编译器

安装 一、安装 Vim(文件编辑器) bash apt-get install vim 注:如果没有在超级用户的操作下需要提权 二、安装 GCC(编译器) bash apt-get install gcc 三、安装 build-essential bash apt-get install...

阅读全文

Linux实现定时备份网站到网盘

安装bypy 安装 pip 和虚拟环境 1. 安装虚拟环境创建工具: bash sudo apt-get install python3-venv -y 2. 创建一个新的虚拟环境: bash python3 -m venv "/var/script/ve...

阅读全文

使用LNMP搭建网站

搭建网站 (以 Typecho 为例) 系统:Debian 12 第一步:绑定域名 1. 修改 hosts 配置 bash vim /etc/hosts 添加需要绑定的域名,格式如下: text 公网IP 域名 第二步:配置 MySQL...

阅读全文

开启系统自带的TCP BBR加速

系统自带内核高于4.9 则默认已包含 BBR 1. 检查内核版本 bash uname -r 内核版本高于 4.9 就行。 2. 开启BBR 通过向 /etc/sysctl.conf文件添加配置来启用BBR bash echo "net.core.default_qdisc=fq" | sud...

阅读全文

手动搭建LNMP

系统更新和软件安装 更新系统的软件包列表 在开始安装任何软件之前,最好先更新系统的软件包列表: bash sudo apt update 第一步:安装 Nginx 1. 安装 Nginx: bash sudo apt install nginx 2. 启动 Nginx 并检查...

阅读全文

一键卸载宝塔Linux面板及运行环境命令

命令 bash wget http://download.bt.cn/install/bt-uninstall.sh 执行脚本 bash sh bt-uninstall.sh

阅读全文