步骤一:安装vsftpd 安装vsftpd yum install -y vsftpd 设置FTP服务开机自启动 systemctl enable vsftpd.service 启动FTP服务 systemctl start vsftpd.service 查看FTP服务监听的端口 netstat - ...
分类:
系统相关 时间:
2020-05-31 01:11:53
阅读次数:
92
一、 Linux安全设置 1、口令长度限制 设定用户默认密码长度不小于10位(数字、字母、特殊字符) 说明:该限制只是警告提示,不是强制要求 检查项:设置用户密码最小长度 加固建议:在/etc/security/pwquality.conf中取消minlen注释符号#,同时设置最小密码长度建议10位 ...
分类:
系统相关 时间:
2020-05-30 11:10:28
阅读次数:
222
一.安装mysql 这里我们基础系统是centos7.5 [root@monitor ~]# yum install -y mariadb-server [root@monitor ~]# systemctl start mariadb && systemctl enable mariadb [ro ...
分类:
数据库 时间:
2020-05-29 19:13:24
阅读次数:
73
程序在本地能跑起来且正常访问,部署到linux服务器上,跑起来没报错,但是就是访问不了, 这种问题往往是防火墙问题!! 下面是red hat/CentOs7关闭防火墙的命令: 1:查看防火状态 systemctl status firewalld service iptables status 2: ...
分类:
系统相关 时间:
2020-05-29 17:40:22
阅读次数:
110
主机断电重启后,docker中的应用也就停止了服务。这里我们需要启动这些应用(这里以在docker中启动rocketmq为例); 1.linux中输入【systemctl status docker.service】命令查看docker是否正在运行,如果没有,输入【systemctl start d ...
分类:
其他好文 时间:
2020-05-29 12:18:26
阅读次数:
126
##jumpserver 1.5.9安装 #!/bin/bash ###jumpserver 1.5.9 systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/SELINUX=.*/SELINUX=di ...
分类:
其他好文 时间:
2020-05-29 11:58:41
阅读次数:
121
今天重启mysql发现报错如下: $ sudo service mysqld restart Redirecting to /bin/systemctl restart mysqld.service Job for mysqld.service failed because the control ...
分类:
数据库 时间:
2020-05-28 16:13:34
阅读次数:
115
1、开启防火墙 systemctl start firewalld 2、开放指定端口 firewall-cmd --zone=public --add-port=6666/tcp --permanent 命令含义: --zone #作用域 --add-port=6666/tcp #添加端口,格式为: ...
分类:
其他好文 时间:
2020-05-27 18:44:24
阅读次数:
1301
CentOS7 防火墙 一、防火墙的开启、关闭、禁用、查看状态命令 (1)启动防火墙:systemctl start firewalld (2)关闭防火墙:systemctl stop firewalld (3)设置开机启用防火墙:systemctl enable firewalld.service ...
分类:
其他好文 时间:
2020-05-27 18:41:49
阅读次数:
70
使用 systemctl list-unit-files 可以查看启动项 左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动 过滤查询可以systemctl list-unit-files | grep enabled 过滤查看启动项如下 过滤查询可以systemct ...
分类:
其他好文 时间:
2020-05-27 11:48:15
阅读次数:
98