包含标签 nginx articles

centos7 + nginx + moodle4安装配置

一、安装PHP7.4 on CentOS7 1yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 3yum -y install yum-utils 4yum-config-manager --enable remi-php74 5yum update 6yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt \ 7 php-mbstring php-curl php-xml php-pear php-bcmath php-json \ 8 php-mysqlnd php-xml php-xmlrpc php-pdo php-pecl-zip php-intl php-common 安装opcache Opcache 最初被称为 Zend Optimizer+,Opcache(在推出PHP 5.5.0以后)是被作为内置扩展以提高性 PHP 的性能。通过 PECL 它也可以用于 5.2,5.3和5……

Continue reading

AKCMS的nginx伪静态规则

一直有打算使用一个简单而不简洁的而且占用系统资源较少的cms 来做一个可定制化的站点,选来选去感觉akcms还是比较不错的,私下也搭建测试过,不过想要利用akcms做一个比较不错的站点需要有一定的基础去制做模板,一些代码微调等。由于近期事情太忙,先将nginx下对于akcms 的伪静……

Continue reading

fastcgi_cache with conditional purging

Check if your nginx has fastcgi_cache_purge module Support for fastcgi_cache_purge should be already there. You can test it by running following command: 1nginx -V 2>&1 | grep nginx-cache-purge -o If you see nginx-cache-purge in output then you already have it. Otherwise, if you are on Ubuntu with default Nginx installation, you can run following commands to install nginx with fastcgi_cache_purge module. Reinstall nginx with fastcgi_cache purge module support 1sudo add-apt-repository ppa:rtcamp/nginx 2sudo apt-get update 3sudo apt-get remove nginx* 4sudo apt-get install nginx-custom Install Nginx Helper Plugin Above step ensures that Nginx can purge a page from its fastcgi_cache selectively. But Nginx cannot automatically find out which page to purge and when to purge? So install Nginx helper plugin from WordPress plugin repository and activate it. Apart from other features, it provides cache purging options. Just activate it, go to its settings and turn on “Enable Cache Purge” option.……

Continue reading

Nginx+Https配置

现在越来越多的站点使用了https加密,这里结合密钥的创建到nginx的https配置分别进行下介绍。TLS或传输层安全( transport layer security),它的前身是SSL(安全套接字层secure sockets layer),是Web协议用来包裹在一个受保护,加密封装正常通道。采用这种技术,服务器和客……

Continue reading

nginx + uwsgi + flask环境搭建

1.下载所需要的软件包 1wget http://nginx.org/download/nginx-1.5.9.tar.gz 2wget http://projects.unbit.it/downloads/uwsgi-2.0.4.tar.gz 3wget http://exim.mirror.fr/pcre/pcre-8.34.tar.gz 2.编译安装 1#安装pcre ,Nginx的HTTP Rewrite模块会用到 2tar zxvf pcre-8.34.tar.gz 3cd pcre-8.34/ 4./configure 5sudo make 6sudo make install 7cd .. 8#安装nginx------------------------------------------ 9tar -zxvf nginx-1.5.9.tar.gz 10cd nginx-1.5.9 11./configure --user=nobody --group=nobody --prefix=/usr/local/nginx --with-http_stub_status_module --with-cc-opt='-O3' --with-cpu-opt=opteron 12sudo make && sudo make install 13cd .. 14……

Continue reading

web模型中为什么单台并发只有5万个左右?

很长一段时间对web模型的并发量的理解只是停留在单台并发在5万左右 ,具体为什么这样,理解的并不深刻,只是在看nginx的相关文档时都这样介绍的。后来在处理个信的推送(comet应用)时,对于其单台上百万的连接甚是不解。感觉这违背了单台5万并发的逻辑。后经过梳理,找到了一个合理的解……

Continue reading

nginx目录索引autoindex与fancy

nginx不仅仅作为web站点使用,也可以当做一个文件共享的使用,索引目录列表提供用户下载文件,apache的index功能很强大也很漂亮.咱们使用的nginx,说下nginx索引目录(nginx内置索引目录点我),他自带的autoindex模块ngx_http_autoinde……

Continue reading

lvs、nginx、haproxy转发模式总结

lvs、nginx、haproxy是最常见的三种高可用性负载均衡软件。由于lvs和haproxy在目前的公司的现网环境中并未用到,虽然之前简单的了解和搭建过,现在也已经忘的差不多了,而及于nginx的负载均衡虽然公司在用,不过一配置文件都是ctrl+c、ctrl+v,对转发的理论……

Continue reading

处理IE下载apk变zip的问题

经公司产品人员反应,在IE浏览器上下载公司网站上的apk文件时,下载下来的apk包会变成zip包 ,其他浏览器则正常 。造成该问题的原因是服务器的mime类型中没有对apk的支持。修改方法也很简单 。 一、nginx下 nginx下可通过修改/usr/local/nginx/conf目录下……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI Alpine Android Anpic Ansible Apache Apm Apparmor Appfog Apr Apt-Get Aria2 Array Atlassian Atop Audit Awk AWS Awstats Axel Azure Backdoor Backup Bamboo Bash Bat Benchmark Bigdata Bin Bind Bitwise Blockchain BMC Book Bootstrap Brocade Bsd C1000 Cache Capistrano Catlog CDH5 Centos Centos7 Chatops Chattr Check_mk Checkinstall Cisco CL210 Clickhouse Cloud Cloud-Desktop Cmdb Cms Cobbler Collectd Comm Compress Confd Conver Corosync Cpu Crontab Crunchbang Css Curl C语言 Date DDOS Decode Dell Desktop Devops Df Dhcp Diff Diskpart DISTINCT Django DNS Docker Dos2unix Dpkg Drupal Duckdb EKS ELK Etcd Excel Fail2ban Fastcgi Fdisk Fiddler Find Firewalld Flask Flvtool Ftp Function Fuser GCP Geek Ghost Gin Git Github Gitlab Glances Glusterfs Go Godaddy Golang Google Gooupadd Grafana Graphviz Gravatra Grep Grub2 Hadoop Haproxy Hardware HBA HCIE Heartbeat Helm Hexdump Hhvm History Hotspot Html Http/Html/Web Http/Html/Web Httplogs Https HttpWatch Huawei Huaweicloud Hugo IBM Icmp Iconv Ifconfig IIS InfluxDB Ingress InnoDB Inotify Iopp IOS Ipmitool Iptables Iredmail Iscsi Isito It-News Java JavaScript Jdk Jenkins Jinja2 Jira Join Joomla K3s K8s Kdump Keepalived Kernel Kingate KVM Lamp Last Leetcode Lib Linux Linux高级篇 Ln Ls Lsi Lsof Lvm Lvs Mac Mail Man Mark Markdown Matplotlib Maven Memcached Microservice Mimikatz Mkdocs Mkpasswd Mmonit Mod_jk Mongodb Monit Monitor Mono Moodle Mosh Mount Mplayer Mpm Mrtg Mtr My.cnf Mysql Mysqlbinlog Mysqld_multi MySQLdb Mysqldump Mysqlhotcopy Nagios Nc Nethogs Netlify Nexus Nfs Nginx Nmon Nocatlog Node.js Nrpe Ntfs Ntop Ntp Obs Ocr Open-Falcon Openbox Opencv Openldap OpenResty Openssl Openstack Oracle Oswatch Paas Pacemaker Pam Pandas Parted Pcp Pcre Pdf Percona Perl Pexpect Pgrep Php Php-Fpm Ping Plsql Develope PM Postfix PostgreSQL Powershell Prettify Proc Prometheus Puppeteer Pushd Pwgen Pxe Pyecharts Python Python模块 QoS Radmin Raid Rdesktop Read Redhat Redis Redmine Regex Rh134 RH318 RH442 RHCA RHCE Rhel7 Rhel8 RHEV Rm Rman Rootkit Route Rpm Rpmforge Rrdtool RSA Rsync Rsyslog Safe Saltstack Samba Scapy Screen SecureCRT Sed Selenium Selinux Seo Seq Session Set Shc Sheepdog Shell Shopt Sitemap Skydns Smokeping Snffier Snmp Socket Soft Sort Spider Sql Sqlserver Squid SRE Ss Ssh Sshpass Statuscode Strace Strings Su SublimeText2 Sudo Suse Svn Sysbench Syslog-Ng Sysstat Systemd T Tar TC Tcpcopy Tcpdump Tech Telecom Telnet Tencentcloud Tengine Test Testlink Threads Time Tmux Tomcat Touch Tr Tsar Twisted Ubuntu Udev Ulimit Unix Unixbench User-Agent Useradd Varnish VBA Vbs Vercel Vi Vim Visudo Vmstat Vmware Vnc Voice Vpn Vscode Vsftp Vsftpd Vue Watchdog Web Webcam Webistrano Wget Wiki Windows Wol Wordpress Workshop Wsl X-Windows Xampp Xcache Xmllint Xtrabackup Yule Yum Zabbix Zeromq Zip Zonetime Zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta