linux
linux
菜鸟特工007
不积跬步无以至千里,不积小流无以成江海。
展开
-
linux的firewall防火墙基本操作
防火墙基本操作:1、启动服务:systemctl start firewalld.service2、关闭服务:systemctl stop firewalld.service3、重启服务:systemctl restart firewalld.service4、显示服务的状态:systemctl status firewalld.service5、开机自动启动:systemctl enable firewalld.service6、禁用开机自动启动:systemctl disable firew原创 2020-05-12 21:08:26 · 225 阅读 · 0 评论 -
CentOS7.4系统重启时执行自定义脚本
demo脚本文件内容#!/usr/bin/env bash# chkconfig: 123456 10 90 # description: myservice ....filename="/usr/local/jar/demo.jar"logpath="/usr/local/jar/temp.log"pid=`ps -ef | grep ${filename} | grep -v ...原创 2020-01-08 17:40:58 · 641 阅读 · 0 评论 -
Linux 系统安装Git
GitHub下载最新版本的压缩包用XShell连接上以后,用wget命令将压缩包下载下来,比如: wget https://github.com/git/git/archive/v2.24.0.tar.gz下载完毕后,将压缩包解压开,如 tar -zxvf v2.24.0.tar.gz,解压后有个 git-2.24.0文件夹。查看当前系统是否安装了Git输入命令 git --versi...原创 2019-11-16 15:46:59 · 208 阅读 · 0 评论