RockyLinux更换国内源

对于 Rocky Linux 8,使用以下命令替换默认的配置sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirror.nju.edu.cn/rocky|g'

- 阅读全文 -

Debian更换清华源

更新证书apt install apt-transport-https ca-certificates备份cp /etc/apt/sources.list /etc/apt/sources.list-bak执行修改# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ boo

- 阅读全文 -

Mysql通过命令行创建数据库及用户

使用root登录mysql -h 127.0.0.1 -u root -p创建数据库CREATE DATABASE mydatabase;创建一个新的用户CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';将用户与数据库关联GRANT ALL PRIVILEGES ON

- 阅读全文 -

Mysql8.0重置root密码

停止 mysqld进程守护systemctl stop mysqld.service使用安全模式启动mysqldmysqld_safe --skip-grant-tables --skip-networking连接mysql并修改密码mysql ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mys

- 阅读全文 -

Linux编译安装pure-ftpd

安装pure-ftpd下载源码wget https://github.com/jedisct1/pure-ftpd/releases/download/1.0.50/pure-ftpd-1.0.50.tar.gztar -zxvf pure-ftpd-1.0.50.tar.gz执行编译cd pure-ftpd-1.0.50/./configure --prefix=/usr/local/pure-

- 阅读全文 -