
Linux
文章平均质量分 79
linux
I WANT TOO
这个作者很懒,什么都没留下…
展开
-
Linux运行jar包
同步运行java -jar demo.jar --server.port=8080执行后窗口被锁定,可按CTRL + C打断程序运行,或直接关闭窗口退出程序后台运行java -jar demo.jar --server.port=8080 &执行后窗口不被锁定,但是当窗口关闭时,程序中止运行不中断运行#缺省执行(执行日志输出到nohup.out的文件中)nohup java -jar demo.jar --server.port=8080 &#自定义日志文件执行noh原创 2020-06-13 15:08:57 · 178 阅读 · 0 评论 -
CentOS 7防火墙管理
防火墙基本操作#查看防火墙状态firewall-cmd --state#打开防火墙systemctl start firewalld#停止防火墙systemctl stop firewalld防火墙开机启动#设置开机自启systemctl enable firewalld#禁止开机自启systemctl disable firewalld#查看是否为开机自启systemctl is-enabled firewalld防火墙端口操作#查看当前防火墙开放的端口firewall原创 2020-06-10 08:27:43 · 113 阅读 · 0 评论 -
CentOS 7 下 ifconfig command not found
报错内容[root@localhost ~]# ifconfig-bash: ifconfig: command not found查看ifconfig命令是否存在如果ifconfig命令存在,查看环境变量设置不存在则直接安装工具包[root@localhost ~]# yum install net-tools原创 2020-06-07 17:54:53 · 274 阅读 · 0 评论 -
Centos 7 安装修改yum数据源(使用aliyun数据源)
备份数据源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak下载aliyun数据源wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repowget指令不存在[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo h原创 2020-06-07 17:33:55 · 802 阅读 · 0 评论