当前位置: 首页 > wzjs >正文

山东省中国建设银行网站ueeshop建站费用

山东省中国建设银行网站,ueeshop建站费用,鞍山百姓网招聘信息,微信显示wordpress文章前言 这一系列文章主要包含的内容主要是 各种常用软件的调试环境的搭建 主要的目的是 搭建一个可打断点的一个调试环境 c 系列 主要是基于 clion 调试, java 系列主要是基于 idea 调试, js 系列主要是基于 webstorm 调试 需要有一定的 c, c, java, js 相关基础 基于的…

前言

这一系列文章主要包含的内容主要是 各种常用软件的调试环境的搭建  

主要的目的是 搭建一个可打断点的一个调试环境 

c 系列 主要是基于 clion 调试, java 系列主要是基于 idea 调试, js 系列主要是基于 webstorm 调试 

需要有一定的 c, c++, java, js 相关基础 

基于的环境是一个 ubuntu16.04 desktop, 初始的时候 仅仅更新了源, 安装了 clion 
 

redis, nginx, mysql, vsftpd
javac, javap, jstack, jmap, jinfo
kafka,
spark, flink
coreutils, glibc, gdb 
hotspotVM, linux
... 等等其他

 

 

编译 nginx-1.22.1 

首先去官方网站下载最新源码, 然后拷贝自 目标虚拟机 

 

 

 

开始配置, 有条件的话可以安装一下 pcre, ssl, zip 相关库, 这里没有安装 

root@ubuntu:~/Desktop/nginx-1.22.1# ./configure --without-http_rewrite_module --without-http_gzip_module
checking for OS+ Linux 4.4.0-62-generic x86_64
checking for C compiler ... found+ using GNU C compiler+ gcc version: 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for eventfd() ... found
checking for O_PATH ... found
checking for sendfile() ... found
// 省略部分输出 
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
creating objs/MakefileConfiguration summary+ PCRE library is not used+ OpenSSL library is not used+ zlib library is not usednginx path prefix: "/usr/local/nginx"nginx binary file: "/usr/local/nginx/sbin/nginx"nginx modules path: "/usr/local/nginx/modules"nginx configuration prefix: "/usr/local/nginx/conf"nginx configuration file: "/usr/local/nginx/conf/nginx.conf"nginx pid file: "/usr/local/nginx/logs/nginx.pid"nginx error log file: "/usr/local/nginx/logs/error.log"nginx http access log file: "/usr/local/nginx/logs/access.log"nginx http client request body temporary files: "client_body_temp"nginx http proxy temporary files: "proxy_temp"nginx http fastcgi temporary files: "fastcgi_temp"nginx http uwsgi temporary files: "uwsgi_temp"nginx http scgi temporary files: "scgi_temp"

 

 

开始编译 

调整编译时优化级别, 不优化  

 

root@ubuntu:~/Desktop/nginx-1.22.1# make 
make -f objs/Makefile
make[1]: Entering directory '/root/Desktop/nginx-1.22.1'
cc -c -pipe  -O0 -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \-o objs/src/core/nginx.o \src/core/nginx.c
cc -c -pipe  -O0 -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \-o objs/src/core/ngx_log.o \src/core/ngx_log.c
cc -c -pipe  -O0 -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \-o objs/src/core/ngx_palloc.o \src/core/ngx_palloc.c
// 省略一部分输出 
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_random_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt \
-Wl,-E
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory '/root/Desktop/nginx-1.22.1'

 

root@ubuntu:~/Desktop/nginx-1.22.1# ls -l objs/ | grep nginx
-rwxr-xr-x 1 root root 3148224 Apr  5 01:40 nginx
-rw-r--r-- 1 root root    5537 Apr  5 01:40 nginx.8

 

 

clion 中调试

clion 中打开 nginx-1.22.1 项目 

新建 make application, 配置名称 

target 配置 make 相关, build 配置 Makefile 中 build 的命令, clean 配置 Makefile 中 clean 的命令 

executable 配置编译好的 nginx-server 的可执行文件 

program arguments 即为 nginx-server 所需要的参数, 这里配置为配置文件  

 

然后启动 nginx-server 服务 

 

 

访问 nginx 的服务

 

 

但是 还存在一个问题是, 我们期望调试的是请求流程的处理, 因此 我们需要调试 work 进程     

因此 我们这里交换 master, worker 的业务, 以便于 我们直接在 clion 中调试 worker 

 

 

ngx_http_static_module.ngx_http_static_handler 中打上断点, 然后 访问 nginx 的静态资源, 发现断点如下, 至此 可以正常调试了 

http://192.168.0.108/index.html

 

 

 

 

 

http://www.dtcms.com/wzjs/389822.html

相关文章:

  • 软件开发公司厂家有哪些seo搜索引擎优化课程
  • 微信app官网下载广州seo做得比较好的公司
  • 委托网站建设流程图对seo的理解
  • 微信咋做自己的网站无代码免费web开发平台
  • 众划算网站开发百度关键词搜索怎么做
  • app免费下载入口西安seo优化公司
  • 学习网站建设需要什么百度广告投放公司
  • 网站相册优化淘宝关键词优化推广排名
  • 网站开发遇到的问题百度推广关键词排名在哪看
  • 网站开发文献资料福州网站建设团队
  • 电子商务网站规划搜索引擎优化的办法有哪些
  • 有什么软件可以做网站万网域名查询
  • 网站访客qq获取代码天津百度seo代理
  • 做视频链接的网站吗百度做网站
  • 宝坻网站建设怎么推广自己的产品
  • wordpress 后台 模板巩义网站推广优化
  • 360seo排名点击软件山东服务好的seo公司
  • 江西南昌电子商务网站建设公司常见的网络直接营销有哪些
  • 微信公众账号登录入口宁波seo外包公司
  • 网站怎么自己做推广淘宝seo软件
  • 设计好的建设专业网站搜索引擎营销的成功案例
  • 茌平网站建设菜谱制作个人网站设计成品
  • 如何编辑做网站长沙官网seo分析
  • 新乡网站建设公司黄页88推广多少钱一年
  • 网站运营做的是什么工作百度推广手机登录
  • 珠海品牌网站建设win7优化大师官方免费下载
  • 湘潭做网站公司选择封象网做网站公司谷歌seo服务商
  • 菏泽企业做网站英雄联盟更新公告最新
  • WordPress美图主题北京搜索优化排名公司
  • 用Html5做网站邀请注册推广赚钱的app