默默的一块石头
发布时间:2022-05-18 16:53:49
安装软件包:apt-get install git-core fcgiwrap nginx配置nginx.conf: location ~ /chro(/.*) { # FastCGI 参数 fastcgi_pass unix:/var/run/fcgiwrap.socket; fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; fastcgi_param GIT_HTTP_EXPORT_ALL ""; # git 库在服务器上的跟目录 fas.........【阅读全文】
发布时间:2022-05-17 16:19:11
SSH provides a secure way to access and manage Linux servers. Sometimes while connecting to SSH servers, users often encounter “Connection refused” error by port 22. It happens because of several reasons like SSH service is not running, the port is blocked by the firewall, or the server is using a.........【阅读全文】
发布时间:2021-12-22 15:31:55
测试环境:1.ubuntu 18.042.nginx-1.15.6实验:1.基于nginx-1.15.6添加debug code static int lucount = 0;ngx_http_upstream_round_robin.cstatic ngx_http_upstream_rr_peer_t *ngx_http_upstream_get_peer(ngx_peer_connection_t *pc,ngx_http_upstream_rr_peer_data_t *rrp){ time_t .........【阅读全文】
发布时间:2021-12-08 11:26:05
# 查看物理CPU个数cat /proc/cpuinfo|grep "physical id"|sort -u|wc -l# 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo|grep "cpu cores"|uniq# 查看逻辑CPU的个数cat /proc/cpuinfo|grep "processor"|wc -l# 查看CPU的名称型号cat /proc/cpuinfo|grep "name"|cut -f2 -d:|uniqLinux查看某个进程.........【阅读全文】
发布时间:2021-11-11 11:41:18
手动编译安装nginx0.前期准备1.下载nginx源码包并解压2.编译3. 其他命令4. 官方启动脚本内容,用于开机自启(以下内容未测试)0.前期准备sudo apt-get update#安装依赖:gcc、g++依赖库sudo apt-get install build-essential libtool#安装 pcre依赖库(http://www.pcre.org/)sudo apt-get install libpcre3 libpc.........【阅读全文】