运维
ACTIM__
ACTIM
展开
-
nginx安装教程(详细)
本文链接:https://blog.csdn.net/Activity_Time/article/details/88908325一、Nginx简介Nginx是一个web服务器,可以访问静态资源,也可以用来做负载均衡及反向代理使用,接下来说一下安装过程。二、下载Nginx相关组件1. 安装编译工具开始前,请确认gcc g++开发类库是否装好,默认已经安装。# ububtu...原创 2019-03-30 11:43:39 · 2380 阅读 · 1 评论 -
Maven Tomcat热部署插件配置
1. 修改 tomat/conf/tomcat-users.xml 添加<role rolename="manager-gui"/><role rolename="manager-script"/><user username="tomcat" password="tomcat" roles="manager-gui,manager-script...原创 2019-07-17 10:27:02 · 159 阅读 · 0 评论 -
Centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
原文链接: https://blog.csdn.net/bbwangj/article/details/745029671. iptables防火墙1、基本操作# 查看防火墙状态service iptables status # 停止防火墙service iptables stop # 启动防火墙service iptables start # 重启防火墙se...转载 2019-07-13 17:58:06 · 2483 阅读 · 0 评论 -
Nginx如果未开启SSL模块,配置Https时提示错误
nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:37 - ノGHJ - 博客园 ノGHJ心念一转,万念皆...转载 2019-07-13 17:41:35 · 2433 阅读 · 0 评论 -
nginx -stream(tcp连接)反向代理配置 实现代理mysql以及文件上传
1. stream模块安装nginx默认安装的时候无法加载流stream模块,需要在启动参数里加上–with-stream。解决方法:重新对源文件进行编译、安装,通过添加–with-stream参数指定安装stream模块。nginx安装教程[root@localhost nginx-1.12.2]# ./configure --with-stream[root@localhost n...原创 2019-07-13 17:29:48 · 12553 阅读 · 1 评论 -
git获取commit id
git获取commit id获取完整commit id(如:bb4f92a7d4cbafb67d259edea5a1fa2dd6b4cc7a)git rev-parse HEAD获取short commit id(如:bb4f92a)git rev-parse --short HEAD原创 2019-05-25 19:38:18 · 30664 阅读 · 0 评论 -
分割备份nginx日志
#!/bin/shBASE_DIR=/usr/local/nginxBASE_FILE_NAME=act.top.access.logCURRENT_PATH=$BASE_DIR/logsBAK_PATH=$BASE_DIR/datalogsCURRENT_FILE=$CURRENT_PATH/$BASE_FILE_NAMEBAK_TIME=`/bin/date -d yest...原创 2019-03-30 12:48:37 · 201 阅读 · 0 评论 -
nginx配置教程(集合)及配置文件示例
-----------------------------------------------------------------nginx安装教程(详细)本篇讲述了nginx在linux(Centos)中的下载和安装方法-----------------------------------------------------------------Nginx安装及配置详解本...原创 2019-03-30 12:19:32 · 575 阅读 · 0 评论 -
修改Linux主机名
修改主机名1)修改linux的hosts文件(1)进入Linux系统查看本机的主机名。通过hostname命令查看[root@host1~]# hostnameCentos6.host1(2)如果感觉此主机名不合适,我们可以进行修改。通过编辑/etc/sysconfig/network文件vim /etc/sysconfig/network文件中内容NETW...原创 2019-03-30 11:55:37 · 1882 阅读 · 0 评论 -
linux配置网络ip地址
linux配置网络ip地址0)查看当前ip基本语法:[root@hadoop102 /]# ifconfig1)在终端命令窗口中输入[root@hadoop102 /]#vim /etc/udev/rules.d/70-persistent-net.rules进入如下页面,删除eth0该行;将eth1修改为eth0,同时复制物理ip地址2)修改IP地址[roo...原创 2019-08-30 17:16:32 · 346 阅读 · 0 评论