2023年4月

25
Apr

【转】CentOS7 启动 firewalld 防火墙失败,查看日志提示超时

问题描述
启动 firewalld systemctl start firewalld 时命令卡住不动不返回,Ctrl+C 取消后,systemctl status firewalld 提示启动状态超时,启动失败。

问题解决

#关闭firewalld服务
systemctl stop firewalld
#关闭firewalld进程
pkill -f firewalld
#启动firewalld服务
systemctl start firewalld

到此就正常了。

官方的说法是可能 systemd 不知道自己没启动firewalld成功,在那一直等着?

systemd didn’t know about the process that it didn’t start in the first place of course

参考官方博客

25
Apr

Linux之Firewalld安装及使用

一、Firewalld介绍
1、firewalld介绍
  Firewalld提供了动态托管的防火墙,并支持定义网络连接或接口的信任级别的网络/防火墙区域。它支持IPv4,IPv6防火墙设置,以太网桥和IP集。运行时和永久配置选项分开。它还为服务或应用程序提供了一个接口,以直接添加防火墙规则。

阅读全文»

25
Apr

Linux学习汇总

Linux教程
https://www.runoob.com/linux/linux-tutorial.html

常用指令的学习
https://www.runoob.com/w3cnote/linux-common-command-2.html

常用命令的英文全拼
https://www.runoob.com/w3cnote/linux-command-full-fight.html

find 指令的专门学习
https://blog.csdn.net/l_liangkk/article/details/81294260

VI/vim的学习
http://c.biancheng.net/linux_tutorial/40/

VI/vim的学习 整个学习
https://blog.csdn.net/weixin_42425970/article/details/93328668

shell的专门学习
https://blog.csdn.net/weixin_43288201/article/details/105643692

25
Apr

Docker中安装宝塔

宝塔面板的安全性令人怀疑,所以推荐在容器内安装宝塔,防止不法分子通过漏洞入侵服务器
以下是Docker中安装宝塔的方法,教程绝大部分转载于CSDN:Docker中安装宝塔一文Linux宝塔怎么设置开机自启,使用docker安装宝塔,并解决宝塔服务在docker下开机自启动问题...,作了部分改动,更便于新手阅读
教程开始:
1、docker拉取ubuntu系统
docker pull ubuntu

阅读全文»

25
Apr

Linux安装Git最新版

Linux某些版本的官方源使用的Git还是旧版本,新版本只能自己通过编译安装,以下是安装方法
1.安装依赖包

yum -y install zlib-devel curl-devel openssl-devel perl cpio \ 
expat-devel gettext-devel openssl zlib autoconf tk perl-ExtUtils-MakeMaker gcc 

阅读全文»