分类为 Linux 的文章:
server { listen 80; server_name ws.repo; location / { proxy_pass http://127.0.0.1:3000/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } 或 upstream ws_server { server 127.0.0.1:3000; } server { listen 80; server_name ws.repo; location / { ...
2016/09/14 浏览数(1,527) 分类(Linux, Nginx, Windows)
更多安装方法见:https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft 步骤: 创建 /etc/yum.repos.d/MariaDB.repo 粘贴以下代码: # MariaDB 10.1 CentOS repository list - created 2016-09-02 01:53 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB...
2016/09/2 浏览数(1,469) 分类(CentOS/RockyLinux, MySQL/MariaDB)
vsftpd在版本2.0.1开始,就支持ssl 查看 vsftpd 版本: vsftpd -v 步骤: mkdir /etc/vsftpd/sslkey cd /etc/vsftpd/sslkey openssl req -new -x509 -nodes -out vsftpd.pem -keyout vsftpd.pem -days 3650 vi /etc/vsftpd/vsftpd.conf # 添加: ssl_enable=YES ssl_tlsv1=YES ssl_ciphers=HIGH force_local_logins_ssl=NO force_local_data_ssl=NO allow_anon_ssl=YES rsa_cert_file=/etc/vsftpd/sslkey/vsft...
2016/08/18 浏览数(1,868) 分类(Linux)
CentOS7 的防火墙由 iptables 换成了 firewalld, 查看 firewalld 状态:systemctl status firewalld.service 关闭 firewalld:systemctl stop firewalld.service 配置文件:/etc/firewalld 允许 nginx: systemctl start firewalld.service firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent # http 里没有包含 https firewall-cmd --add-port=8080/tcp --permanent #追加一个...
2016/08/18 浏览数(3,697) 分类(CentOS/RockyLinux, Nginx)
升级wdcp到最新版本 下载最新版的源码:http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz 从下载的源码中解压出 htttpd 的源码,位置: lanmp_laster.tar.gz/lanmp/httpd-2.2.24.tar.gz 解压后进入 httpd 源码的 /modules/proxy/ 目录中执行以下命令: /www/wdlinux/httpd-2.2.24/bin/apxs -i -c -a mod_proxy.c proxy_util.c /www/wdlinux/httpd-2.2.24/bin/apxs -i -c -a mod_proxy_http.c /www/wdlinux/httpd-2.2.24/bin/...
2016/01/25 浏览数(1,511) 分类(Linux)
本文为修改 Pure-FTP 服务器的欢迎信息的方法,建议修改为 Server-U 的欢迎信息(SERV-U V6.3版)以迷惑调皮捣蛋的娃们。 修改后: 状态: 正在解析 svr1.upall.cn 的地址 状态: 正在连接 110.110.110.110:21... 状态: 连接建立,等待欢迎消息... 响应: 220-欢迎登录我的FTP。 <-- 注意看这里,本文改的是这个地方 命令: USER anonymous 响应: 331 Please specify the password. 命令: PASS **************** 响应: ...
2016/01/5 浏览数(2,296) 分类(Linux)
介绍: GoAccess 是一个日志分析工具,可定制日志格式,官网:http://goaccess.io/faq 本文介绍用 GoAccess 来统计 wdlinux 的 nginx 的日志,效果如下: HTML版: 终端版: 安装: yum -y install goaccess 配置: 修改设置文件,告知 wdlinux 的 nginx 的日志格式 vi /etc/goaccess.conf 在开头的相应位置添加以下设置: time-format %H:%M:%S date-format %d/%b/%Y log-format %h %^ %^ %^[%d:%t %^] "%r" %...
2015/10/31 浏览数(1,870) 分类(Linux, Nginx)
vnStat是一个Linux下的网络流量监控软件,它可以记录指定网卡每日的传输流量日志。需要注意的是它并非基于网络包的过滤而是分析 /proc, vnStat不需要root权限。 vnstat 命令用法 [root@upall ~]# vnstat --help vnStat 1.14 by Teemu Toivola <tst at iki dot fi> -q, --query query database -h, --hours show hours -d, --days show days ...
2015/07/16 浏览数(2,230) 分类(Linux, PHP, 数据安全)
startup_message off deflogin on autodetach on vbell off vbell_msg " Wuff----Wuff!!" scrollback 11024 defscrollback 11024 bind ^k bind ^\ bind \\ quit bind K kill bind I login on bind O login off bind } history termcapinfo vt100 dl=5\E[M hardstatus on termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 hardstatus string "%h%?...
2015/06/13 浏览数(6,198) 分类(Linux, 未分类)
用途: crontab 即 cron tab,用于设置周期性被执行的指令,通俗点就是定时运行某个命令或脚本 查看自己的定时脚本: crontab -l 编辑自己的定时脚本(会进入vi): crontab -e crontab 各列介绍: # 分钟 小时 日期 月份 周几 用户名 要执行的命令 00 04 * * 1 /home/upall/sh/bak.sh > /dev/null 2>&1 注意: 1、crond 服务必需运行中 2、命令或脚本需要使用绝对地址 3、sh/bak.sh 的内容...
2015/06/2 浏览数(1,619) 分类(CentOS/RockyLinux, Linux)
效果: 命令 service nginx stop cd git clone git://github.com/yaoweibin/ngx_http_substitutions_filter_module.git 或 yum install subversion svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only wget http://nginx.org/download/nginx-1.8.0.tar.gz tar -zxvf nginx-1.8.0.tar.gz cd nginx-1.8.0 ./configure --add-module=/root/substitutions4nginx-read-o...
2015/04/23 浏览数(2,359) 分类(Linux, Nginx)
说明:基于本地用户 nginx 的虚拟FTP用户的 vsftpd 配置。 yum install vsftpd 之后: 清空 vsftpd.conf,写入以下内容: listen=YES ftpd_banner=Support:root at upall dot cn anonymous_enable=NO local_enable=YES local_umask=022 guest_enable=YES guest_username=nginx userlist_enable=YES user_config_dir=/etc/vsftpd/vusers dirmessage_enable=YES xferlog_enable=YES xferlog_std_format=YES pam_ser...
2015/03/28 浏览数(1,542) 分类(CentOS/RockyLinux, Nginx)
点击返回顶部
  1. 留言
  2. 联系方式