-
systemctl命令 1systemctl list-units ##列出当前系统服务的状态 2systemctl list-unit-files ##列出服务的开机状态 3systemctl status sshd ##查看指定服务的状态 4systemctl stop sshd ##关闭指定服务 5systemctl start sshd ##开
阅读更多 -
在 Alpine 上安装 Docker 真是一件让人感觉非常愉快的事情,因为过程非常简单。 修改 apk 源 1$ nano /etc/apk/repositories 因为 docker 在社区的库里,所以要打开 community 的源。 1#/media/cdrom/apks 2http://mirrors.tuna.tsinghua.edu.cn/alpine/v3.16/main 3http://mirrors.tuna.tsinghua.edu.cn/alpine/v3.16/community 4#http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/main …
阅读更多 -
网卡静态地址 1~# nano /etc/network/interfaces 1auto lo 2iface lo inet loopback 3 4auto eth0 5iface eth0 inet static 6 address 192.168.10.16/24 7 gateway 192.168.10.10 8 hostname alpine 配置 DNS 1# nano /etc/resolv.conf 2nameserver 114.114.114.114 重启网络 1~# service networking restart
阅读更多 -
APT Debian 全球镜像站 查找延迟最小的镜像 1sudo apt install -y netselect-apt \ 2 && sudo netselect-apt \ 3 && sudo apt autoremove -y netselect-apt \ 4 && rm -f sources.list 1The fastest 10 servers seem to be: 2 3 http://mirrors.bfsu.edu.cn/debian/ 4 http://mirrors.tuna.tsinghua.edu.cn/debian/ 5 …
阅读更多 -
脚本基于Centos 7 1、查看系统内核版本 1$ uname -r 23.10.0-514.26.2.el7.x86_64 3$ cat /etc/redhat-release 4CentOS Linux release 7.6.1810 (Core) 2、升级内核 导入elrepo的key,然后安装elrepo的yum源 1$ rpm -import
阅读更多 -
删除冗余信息 1sed -i 's/.a2p_replyclient_log.[infoerror].[0-9].log.gz://' merge.log \ 2&& sed -i 's/org.springframework.amqp.rabbit.RabbitListenerEndpointContainer.* - //' merge.log \ 3&& sed -i '/.send 1 time for the url is ./d' merge.log \ 4&& sed -i '/.*redis …
阅读更多