随笔分类 -  Linux技术

1 2 3 4 5 ··· 10 下一页

怎么把linux上的UTC时间改成CST时间
摘要:https://it.cha138.com/ios/show-2111524.html [root@localhost ~]# dateFri Apr 14 23:26:05 EDT 2006 //EDT (美国)东区时区[root@localhost ~]# date -s 2011/9/30Fr 阅读全文

posted @ 2023-05-26 15:25 四海骄阳 阅读(361) 评论(0) 推荐(0)

在线Cron表达式生成/Linux Cron
摘要:https://cron.qqe2.com/ https://www.runoob.com/linux/linux-comm-crontab.html 0 22 * * 6 阅读全文

posted @ 2023-04-19 11:13 四海骄阳 阅读(324) 评论(0) 推荐(0)

vi 查找关键字
摘要:https://blog.csdn.net/weixin_40959890/article/details/128004090 vi打开一个文件后 命令模式下敲斜杆( / ),这时在状态栏(也就是屏幕左下脚)就出现了 “/” 然后输入你要查找的关键字敲回车就可以了。 如果你要继续查找此关键字,敲字符 阅读全文

posted @ 2023-04-19 08:45 四海骄阳 阅读(112) 评论(0) 推荐(0)

Linux将MySQL数据库目录挂载至新数据盘
摘要:https://www.bbsmax.com/A/QW5YRE1Mdm/ 具体操作 Mysql如何挂盘? 使用linux下的软连接方法,具体操作如下:(以迁移到/home/mysql/目录为例) 先停止mysql: /etc/init.d/mysqld stop 移动数据: mv /var/lib/ 阅读全文

posted @ 2023-04-13 09:54 四海骄阳 阅读(179) 评论(0) 推荐(0)

Linux磁盘的相关知识
摘要:https://www.jianshu.com/p/c254c972788a https://blog.csdn.net/weixin_33904522/article/details/116692690 Linux磁盘分区 一块没有分区的磁盘 --> 主分区 + 扩展分区 --> 主分区(c)+ 阅读全文

posted @ 2023-04-13 09:38 四海骄阳 阅读(101) 评论(0) 推荐(0)

Linux配置/etc/resolv.conf
摘要:[root@localhost logs]# cat /etc/resolv.conf# Generated by NetworkManagernameserver 119.29.29.29 腾讯域名解析服务器nameserver 8.8.8.8 阅读全文

posted @ 2023-04-04 09:09 四海骄阳 阅读(182) 评论(0) 推荐(0)

linux挂载硬盘步骤(简单易用,直接上手,无废话)-好
摘要:https://blog.csdn.net/bill_wjn/article/details/106013425?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EC 阅读全文

posted @ 2023-03-31 09:29 四海骄阳 阅读(1222) 评论(2) 推荐(1)

选择mirrorlist 与 baseurl之间的区别
摘要:发现还有一个问题,CentOS-Base.repo 下的mirrorlist 与baseurl mirrorlist指向的就是一堆baseurl(Specifies a URL to a file containing a list of baseurls. baseUrl必须指向 yum服务器上的 阅读全文

posted @ 2023-02-10 10:39 四海骄阳 阅读(378) 评论(0) 推荐(0)

Centos7防火墙常用命令
摘要:https://blog.csdn.net/xyy1028/article/details/104787061 一.系统防火墙1.启动防火墙systemctl start firewalld2.关闭防火墙systemctl stop firewalld3.查看状态systemctl status f 阅读全文

posted @ 2023-01-12 11:14 四海骄阳 阅读(56) 评论(0) 推荐(0)

linux 关闭防火墙firewall,centos中关闭防火墙(firewall)及SELinux
摘要:https://blog.csdn.net/weixin_30983965/article/details/116864967 centos在不断的版本更新迭代过程中,在centos7中默认使用的是firewall作为防火墙。 centos7关闭firewall 查看运行状态:firewall-cm 阅读全文

posted @ 2023-01-12 10:59 四海骄阳 阅读(126) 评论(0) 推荐(0)

中间件操作命令
摘要:http://t.zoukankan.com/forest-sunshine-p-14357115.html 一、重启activemq服务 1.查看服务:ps -ef | grep activemq 2.查看服务目录:ll /proc/28317 3.进入服务目录 停止服务:./activemq s 阅读全文

posted @ 2023-01-12 09:37 四海骄阳 阅读(660) 评论(0) 推荐(0)

cat 正常 vi乱码
摘要:https://zhidao.baidu.com/question/1455557851155814180.html cat查看数据文件,中文显示正常vi编辑文件,中文显示乱码出现此问题,有可能是vim 编辑器的配置编码方面的问题。出现此情况,在vim 编辑器中输入:e ++enc=utf8:e + 阅读全文

posted @ 2023-01-06 09:02 四海骄阳 阅读(923) 评论(1) 推荐(0)

简单点,linux三种网络模式
摘要:https://blog.csdn.net/qq_45714272/article/details/105330790 一:简单介绍linux系统有三种网络模式分别是桥接模式、NAT模式、仅主机模式,名称分别为vmnet0、vmnet1、vmnet8。在windows系统中又有VMware Netw 阅读全文

posted @ 2022-01-28 15:11 四海骄阳 阅读(962) 评论(0) 推荐(0)

linux查找目录下的所有文件中是否含有某个字符串
摘要:https://www.cnblogs.com/keystone/articles/10653163.html 方法一: grep -rn "要查找的字符串" * -r 是递归查找 -n 是显示行号 * : 表示当前目录所有文件,也可以是某个文件名 方法二: find .|xargs grep “要 阅读全文

posted @ 2021-12-28 11:12 四海骄阳 阅读(1373) 评论(0) 推荐(0)

Linux配置/etc/resolv.conf详解
摘要:https://www.cnblogs.com/yuhaohao/p/13889240.html /etc/resolv.conf ; Created by cloud-init on instance boot automatically, do not edit.; options timeou 阅读全文

posted @ 2021-11-16 14:11 四海骄阳 阅读(2213) 评论(0) 推荐(0)

linux防火墙配置
摘要:1、Centos6: iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -A INPUT -s 192.168.200.178 -p all -j ACCEPT iptables -A INPUT -s 192.168.200 阅读全文

posted @ 2021-08-19 08:54 四海骄阳 阅读(453) 评论(0) 推荐(0)

Linux运维之防火墙之firewalld的管理
摘要:https://blog.csdn.net/qq_42303254/article/details/84981388 一、防火墙的介绍防火墙是整个数据包进入主机前的第一道关卡。防火墙主要通过Netfilter与TCPwrappers两个机制来管理的。 (1)Netfilter:数据包过滤机制(2)T 阅读全文

posted @ 2021-08-19 06:39 四海骄阳 阅读(708) 评论(0) 推荐(0)

CentOS 7 firewalld 配置详解 (转)
摘要:https://www.cnblogs.com/vicowong/p/11210144.html https://blog.csdn.net/qq_42303254/article/details/84981388 1.在CentOS 7里有几种防火墙共存:firewalld、iptables、eb 阅读全文

posted @ 2021-08-19 06:07 四海骄阳 阅读(434) 评论(0) 推荐(0)

firewalld防火墙详解
摘要:https://blog.51cto.com/andyxu/2137046 https://blog.51cto.com/u_2333657/2486329 众所周知,在RHEL7系统中,firewalld防火墙取代了iptables防火墙。我们都知道iptables的防火墙策略是交由内核层面的ne 阅读全文

posted @ 2021-08-18 21:12 四海骄阳 阅读(1377) 评论(0) 推荐(1)

Iptables 规则用法小结
摘要:https://www.cnblogs.com/alimac/p/5848372.html linux下IPTABLES配置详解 -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 24000 -j ACCEPT-A R 阅读全文

posted @ 2021-08-18 17:50 四海骄阳 阅读(362) 评论(0) 推荐(0)

1 2 3 4 5 ··· 10 下一页

导航