包含标签 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 AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http 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 mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish 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