一、安装 安装:yum install samba 设置开机自启:chkconfig --level 3 smb on 开启服务:service smb start 测试: 点击确定后弹出登录对话框,表示安装和服务启动成功。 二、更改配置文件 打开配置文件:vim /etc/samba/smb.co ...
如果没出现这个界面,那么就需要安装memcache数据库。 在centos下安装也是非常简单的。 yum -y install memcached 该命令用来安装memcached,不必关心其中各个安装包之间的依赖。命令执行结果如下图所示: 配置memcache数据库参数: 1、chkconfig ...
分类:
系统相关 时间:
2019-01-06 11:19:19
阅读次数:
210
1.查看防火墙对外开放了哪些端口 2.centos6.0防火墙操作: 配置文件:/etc/sysconfig/iptables 开启某个端口号有两种方式:一种是命令方式,一种是修改配置文件方式 查看防火墙状态:chkconfig iptables --list 开启防火墙(重启后永久生效):chkc ...
分类:
其他好文 时间:
2019-01-03 20:10:35
阅读次数:
216
CentOS 7.0设置防火墙 CentOS 7.0默认使用的是firewall作为防火墙, 使用systemctl来管理服务和程序,包括了service和chkconfig 1、查看默认防火墙状态(关闭后显示not running,开启后显示running) [root@localhost ~] ...
分类:
其他好文 时间:
2019-01-01 18:56:26
阅读次数:
254
1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : ...
分类:
其他好文 时间:
2018-12-25 11:26:47
阅读次数:
131
#!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse ... ...
分类:
其他好文 时间:
2018-12-23 11:01:49
阅读次数:
130
#!/bin/sh#chkconfig: 2345 80 05#description: elasticsearch export JAVA_HOME=/usr/local/javaexport JRE_HOME=/usr/local/java/jreexport CLASSPATH=.:$JAVA ...
分类:
其他好文 时间:
2018-12-17 18:59:44
阅读次数:
208
运维Linux系统,部署或升级openssh是经常面临的事,以下已redhat6和redhat7为例。 在redhat6中部署openssh会有什么坑,在编辑openssh源码包时会报一些类似的错误,如下: checking OpenSSL header version... 10000003 (O ...
分类:
系统相关 时间:
2018-12-17 11:45:35
阅读次数:
449
1.关闭防火墙 1.1 查看防火墙状态 service iptables status 1.2 关闭防火墙 service iptables off 1.3 关闭防火墙开机启动 chkconfig iptables off 2.关闭selinux vi /etc/selinux/config 将 S ...
分类:
其他好文 时间:
2018-12-12 00:20:48
阅读次数:
174
一,循环执行 1、crond服务管理与访问控制 service crond restart chkconfig crond on 2、用户的crontab设置 crontab [选项] 选项: -e: 编辑crontab定时任务 -l: 查询crontab任务 -r: 删除当前用户所有的cronta ...
分类:
其他好文 时间:
2018-12-11 19:52:57
阅读次数:
226