[root@web ~]# cd /root/packages nodejs下载页面:http://nodejs.cn/download/,选择合适的linux版本编译包 [root@web ~]# wget -c https://npm.taobao.org/mirrors/node/v12.14.0/node-v12.14.0-linux-x6…
环境准备 安装依赖包 $ yum -y install wget gcc epel-release git 安装 Redis, Jumpserver 使用 Redis 做 cache 和 celery broke $ yum -y install redis $ systemctl enable redis $ systemctl start re…
安装依赖 yum -y groupinstall "Development tools" yum -y install zlib-devel openssl-devel # 比较重要的包(不装的话,python3.7+ 会报错) yum install libffi-devel -y 下载 wget https://www.python.org/f…
安装dhcp服务 [root@pxe-server ~]# yum install dhcp -y 配置DHCP服务 [root@pxe-server ~]# cat >>/etc/dhcp/dhcpd.conf<<EOF subnet 192.168.0.0 netmask 255.255.255.0 { range 19…
需求 根据某运营商项目需求,服务器通常规划于DMZ及核心两块网络环境中,顾名思义,核心域是非常重要的,一般用于部署数据库及存储服务器不提供任何外网访问权限,而DMZ域中可以一对一或一对多的方式进行端口映射从而提供网络服务,那么位于核心域中的服务器基本环境的纯内网部署就成为了首要问题,通常情况下可以采用挂载本地镜像源的方式部署基本服务,而其他服务则需…
在/etc/profile中加入以下脚本 #history USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` HISTDIR=/usr/share/.history if [ -z $USER_IP ] the…
使用zabbix提供的'log[file,,,,,]'来监控Linux的/var/log/secure文件。先介绍下这个log监控项: 1)监控项类型是Zabbix agent (active),返回数据类型是Log。 2)Zabbix agent要对监控的日志文件有可读权限,否则会返回unsupported。 3)参数介绍: file - 日志文…
添加软件源 vi /etc/yum.repos.d/ltb-project.repo [ltb-project-noarch] name=LTB project packages (noarch) baseurl=http://ltb-project.org/rpm/$releasever/noarch enabled=1 gpgcheck=1 g…
安装yum源 [root@jenkins-server ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo [root@jenkins-server ~]# wget -O /etc/yum.repos.d/epel.r…
安装 samba 及其依赖包 [root@samba-server ~]# yum install samba samba-client samba-common -y [root@samba-server ~]# mv /etc/samba/smb.conf /etc/samba/smb.conf.bak [root@samba-server ~…