摘要:
CentOS7.9 查看网络路由 ip route show|column -t 删除默认路由 ip route del default via 192.168.1.1 添加默认路由 ip route add default via 192.168.1.1 dev eth0 双网卡指定默认路由 vi 阅读全文
摘要:
sudo docker run -d \ --restart=unless-stopped \ --name=kuboard-spray \ -p 8090:80/tcp \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /volume1/doc 阅读全文
摘要:
修改sshd配置项 vim /etc/ssh/sshd_config 如下配置项改为no PermitRootLogin no 重启服务即可 systemctl restart sshd 阅读全文
摘要:
查看新网卡MAC地址 ip addr ... link/ether 02:11:32:21:5f:65 brd ff:ff:ff:ff:ff:ff ... 获取网卡UUID nmcli connection show UUID 72553b15-3d86-32a1-8624-bfd5648f4e40 阅读全文
摘要:
安装(源码包) nginx版本为1.21.6 创建nginx用户 useradd -s /sbin/nologin -M nginx yum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel ta 阅读全文
摘要:
docker pull codercom/code-server mkdir /workspace CODE=/workspace mkdir -p $CODE/.config docker run -d --name code-server -p 0.0.0.0:8080:8080 \ -v "$ 阅读全文
摘要:
这里以python3.9.9为例 安装系统依赖 yum install bzip2-devel ncurses-devel sqlite-devel gdbm-devel xz-devel tk-devel readline-devel openssl-devel libffi-devel gcc 阅读全文
摘要:
使用Docker搭建Wordpress docker network create wordpress-network docker run -d \ --name mysql \ -e MYSQL_ROOT_PASSWORD=123456 \ -e MYSQL_DATABASE=wordpress 阅读全文
摘要:
docker run -p 8848:8848 -it --rm ubuntu:latest /bin/bash dpkg -i code-server_4.0.1_amd64.deb apt-get update apt-get install \ vim git gcc make sqlite 阅读全文
摘要:
树莓派设置静态IP sudo vim /etc/dhcpcd.config interface eth0 static ip_address=192.168.1.108/24 static routers=192.168.1.1 static domain_name_servers=192.168. 阅读全文