上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: yum 安装 epel 源安装 epel 源安装nginx yum install epel-release -y yum install nginx -y # 查看 nginx 版本 rpm -qa |grep nginx- nginx-1.12.2-3.el7.aarch64 nginx源安装 阅读全文
posted @ 2022-06-02 15:48 Star-Hitian 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 为什么 Nginx。总体性能比 Apache 高? Nginx使用最新的epoll(Linux2.6内核)和kqueue(freebsd)异步网络I/0模型,而Apache。则使用的是传统的 select 模型。目前 Linux 下能够承受高并发访问的 Squid、Memcached 软件都采用的是 阅读全文
posted @ 2022-06-02 15:18 Star-Hitian 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 反向代理 与 负载均衡 代理:海外代购;微商:代替别人做事。 正向代理:由内向外。代替局域网内PC,请求外部应用服务; 反向代理:由外向内;代替外部的用户 请求内部的应用服务器; 负载均衡:转发;甩手掌柜。效率高 代理,并发数/2 = 请求数; 阅读全文
posted @ 2022-06-02 15:16 Star-Hitian 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 特点: 静态文件高并发,占用资源少,软件本身小 Ngin 这 HTTP 服务器的特色及优点: 支持高并发:能支持几万并发连接(特别是静态小文件业务环境) 资源消耗少:在 3 万并发连接下,开启 10 个 Nginx 线程消耗不到 200MB 内存。 可以做 HTTP 反向代理及加速缓存,即负载均衡功 阅读全文
posted @ 2022-06-02 15:10 Star-Hitian 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.网页服务 自身是静态web服务 apache,lighttpd,IIs 还支持动态web服务 PHP(fastcgi_pass) JAVA(proxy_pass) Python(uwsgi_pass) memcache(memcache_pass) ..... 2.负载均衡/反向代理 hapro 阅读全文
posted @ 2022-06-02 14:56 Star-Hitian 阅读(22) 评论(0) 推荐(0) 编辑
摘要: /etc/init.d/httpd cat > /etc/init.d/httpd << EOF #!/bin/bash ### chkconfig: 12345 80 90 function start_http(){ /usr/local/apache/bin/apachectl start } 阅读全文
posted @ 2022-06-01 20:11 Star-Hitian 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 代码实现 # 做成开机启动 cat /etc/rc.d/init.d/sersync #!/bin/bash start() { /application/sersync/bin/sersync2 -d -o /application/sersync/conf/confxml.xml &>/dev/ 阅读全文
posted @ 2022-06-01 20:05 Star-Hitian 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 将命令放入 远程用户家目录下的.bashrc里边。如下: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you 阅读全文
posted @ 2021-09-13 11:11 Star-Hitian 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: 变量命名规范 由字母(A-Za-z)、数字(0-9)、下划线(_)、美元符号($)组成,如:usage, num1, _name 严格区分大小写。var app;和 var App;是两个变量 不能以数字开头。18age 是错误的 不能是关键字、保留字。例如:var、for、while 变量名必须有 阅读全文
posted @ 2021-09-09 11:35 Star-Hitian 阅读(225) 评论(0) 推荐(0) 编辑
摘要: JS 浏览器组成部分 渲染引擎(内核):解析HTML、CSS JS引擎:js解释器。读取html中js代码,对其处理运行;比如chrome的v8引擎 JS 组成 js 语法:ECMAScript DOM:页面文档对象模型 BOM:浏览器对象模型 JS 位置 行内式 内嵌式 外部JS文件 JS 注释、 阅读全文
posted @ 2021-09-09 11:31 Star-Hitian 阅读(71) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页