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

网站上的图标用什么软件做的免费网站域名

网站上的图标用什么软件做的,免费网站域名,北京注册公司要求,网上银行官网1.前提 虚拟机能连接外网 仿真http应用需在本虚拟机启用(原因#xff1a;只有一台虚拟机做测试) http_8080和http_8081要启用#xff08;http测试应用#xff09; [rootcent79-2 ~]# ls -l http_* -rwxr-xr-x 1 root root 6391676 Jul 19 13:39 http_8080 -rwxr-xr-x 1 …1.前提 虚拟机能连接外网 仿真http应用需在本虚拟机启用(原因只有一台虚拟机做测试) http_8080和http_8081要启用http测试应用 [rootcent79-2 ~]# ls -l http_* -rwxr-xr-x 1 root root 6391676 Jul 19 13:39 http_8080 -rwxr-xr-x 1 root root 6391676 Jul 19 13:39 http_8081 [rootcent79-2 ~]# ./http_8080 [1] 1490 [rootcent79-2 ~]# ./http_8081 [2] 1496 [rootcent79-2 ~]# netstat -antulp |grep 8080 tcp6 0 0 :::8080 :::* LISTEN 1490/./http_8080 [rootcent79-2 ~]# netstat -antulp |grep 8081 tcp6 0 0 :::8081 :::* LISTEN 1496/./http_8081 [rootcent79-2 ~]# curl 192.168.10.156:8080 {text:I am one!} [rootcent79-2 ~]# curl 192.168.10.156:8081 {text:I am two!} [rootcent79-2 ~]# 2.Ngnix配置反向代理 2.1.Nginx配置单个反向代理 1.编辑nginx配置文件nginx.conf添加反向代理配置 user  nginx  nginx; worker_processes  2; worker_rlimit_nofile 1024; error_log  /var/log/nginx/error.log notice; pid        /var/run/nginx.pid; events {     use epoll;     worker_connections  1024;     multi_accept  on; } http {     include       /etc/nginx/mime.types;     default_type  application/octet-stream;     log_format  main  $remote_addr - $remote_user [$time_local] $request                       $status $body_bytes_sent $http_referer                       $http_user_agent $http_x_forwarded_for;     access_log  /var/log/nginx/access.log  main;     sendfile        on;     tcp_nopush     on;     autoindex    on;     keepalive_timeout  65;     #gzip  on;     include /etc/nginx/conf.d/*.conf;     server {     listen  80;     server_name 192.168.10.156;     location / {       proxy_pass http://www.baidu.com;     }     } } 2.nginx语法验证 命令 nginx -t [rootcent79-2 ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [rootcent79-2 ~]# 3.重启nginx 命令 systemctl restart nginx systemctl status nginx [rootcent79-2 ~]# systemctl restart nginx [rootcent79-2 ~]# systemctl status nginx ● nginx.service - nginx - high performance web server    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)    Active: active (running) since Thu 2023-07-20 20:16:16 CST; 3s ago      Docs: http://nginx.org/en/docs/   Process: 2504 ExecStop/bin/sh -c /bin/kill -s TERM $(/bin/cat /var/run/nginx.pid) (codeexited, status0/SUCCESS)   Process: 2509 ExecStart/usr/sbin/nginx -c /etc/nginx/nginx.conf (codeexited, status0/SUCCESS)  Main PID: 2510 (nginx)    CGroup: /system.slice/nginx.service            ├─2510 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf            ├─2511 nginx: worker process            └─2512 nginx: worker process Jul 20 20:16:15 cent79-2 systemd[1]: Starting nginx - high performance web server... Jul 20 20:16:16 cent79-2 systemd[1]: Started nginx - high performance web server. [rootcent79-2 ~]# 4.反向代理验证 地址 http://192.168.10.156 转向为 2.2.Nginx配置反向代理集群 1.编辑nginx配置文件nginx.conf添加反向代理配置 user  nginx  nginx; worker_processes  2; worker_rlimit_nofile 1024; error_log  /var/log/nginx/error.log notice; pid        /var/run/nginx.pid; events {     use epoll;     worker_connections  1024;     multi_accept  on; } http {     include       /etc/nginx/mime.types;     default_type  application/octet-stream;     log_format  main  $remote_addr - $remote_user [$time_local] $request                       $status $body_bytes_sent $http_referer                       $http_user_agent $http_x_forwarded_for;     access_log  /var/log/nginx/access.log  main;     sendfile        on;     tcp_nopush     on;     autoindex    on;     keepalive_timeout  65;     #gzip  on;     include /etc/nginx/conf.d/*.conf;        upstream www.ztj.com {       server 192.168.10.156:8080 weight1 max_fails2 fail_timeout15s;       server 192.168.10.156:8081 weight1 max_fails2 fail_timeout15s;     }     server {     listen  80;     server_name 192.168.10.156;     location / {      proxy_pass http://www.ztj.com;     }     } } 2.nginx语法验证 命令 nginx -t [rootcent79-2 ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [rootcent79-2 ~]# 3.重启nginx 命令 systemctl restart nginx systemctl status nginx [rootcent79-2 ~]# systemctl restart nginx [rootcent79-2 ~]# systemctl status nginx ● nginx.service - nginx - high performance web server    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)    Active: active (running) since Thu 2023-07-20 20:32:50 CST; 4s ago      Docs: http://nginx.org/en/docs/   Process: 2673 ExecStop/bin/sh -c /bin/kill -s TERM $(/bin/cat /var/run/nginx.pid) (codeexited, status0/SUCCESS)   Process: 2678 ExecStart/usr/sbin/nginx -c /etc/nginx/nginx.conf (codeexited, status0/SUCCESS)  Main PID: 2679 (nginx)    CGroup: /system.slice/nginx.service            ├─2679 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf            ├─2680 nginx: worker process            └─2681 nginx: worker process Jul 20 20:32:50 cent79-2 systemd[1]: Stopped nginx - high performance web server. Jul 20 20:32:50 cent79-2 systemd[1]: Starting nginx - high performance web server... Jul 20 20:32:50 cent79-2 systemd[1]: Started nginx - high performance web server. [rootcent79-2 ~]# 4.反向代理集群验证 命令curl 192.168.10.156 [rootcent79-2 ~]# curl 192.168.10.156 {text:I am one!} [rootcent79-2 ~]# curl 192.168.10.156 {text:I am two!} [rootcent79-2 ~]# 2.3.Nginx配置基于context的反向代理(重点) 1.编辑nginx配置文件nginx.conf添加反向代理配置 user  nginx  nginx; worker_processes  2; worker_rlimit_nofile 1024; error_log  /var/log/nginx/error.log notice; pid        /var/run/nginx.pid; events {     use epoll;     worker_connections  1024;     multi_accept  on; } http {     include       /etc/nginx/mime.types;     default_type  application/octet-stream;     log_format  main  $remote_addr - $remote_user [$time_local] $request                       $status $body_bytes_sent $http_referer                       $http_user_agent $http_x_forwarded_for;     access_log  /var/log/nginx/access.log  main;     sendfile        on;     tcp_nopush     on;     autoindex    on;     keepalive_timeout  65;     #gzip  on;     include /etc/nginx/conf.d/*.conf;        server {     listen  80;     server_name 192.168.10.156;     location / {      proxy_pass http://www.baidu.com;     }         location /root {       proxy_pass http://127.0.0.1:8080;         location /root/api {          proxy_pass http://127.0.0.1:8081;         }       }     } } 2.nginx语法验证 命令 nginx -t [rootcent79-2 ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [rootcent79-2 ~]# 3.重启nginx 命令 systemctl restart nginx systemctl status nginx [rootcent79-2 ~]# systemctl restart nginx [rootcent79-2 ~]# systemctl status nginx ● nginx.service - nginx - high performance web server    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)    Active: active (running) since Thu 2023-07-20 20:39:33 CST; 2s ago      Docs: http://nginx.org/en/docs/   Process: 2713 ExecStop/bin/sh -c /bin/kill -s TERM $(/bin/cat /var/run/nginx.pid) (codeexited, status0/SUCCESS)   Process: 2718 ExecStart/usr/sbin/nginx -c /etc/nginx/nginx.conf (codeexited, status0/SUCCESS)  Main PID: 2719 (nginx)    CGroup: /system.slice/nginx.service            ├─2719 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf            ├─2720 nginx: worker process            └─2721 nginx: worker process Jul 20 20:39:33 cent79-2 systemd[1]: Starting nginx - high performance web server... Jul 20 20:39:33 cent79-2 systemd[1]: Started nginx - high performance web server. [rootcent79-2 ~]# 4.反向代理context验证 http://192..168.10.156 http://192..168.10.156/root http://192..168.10.156/root/api
http://www.hkea.cn/news/14474258/

相关文章:

  • 淮安网站建设优化网站图片切换
  • 常州武进建设局网站宜昌seo优化服务
  • 手机端网站开发的意义企业网站在百度搜索不到
  • 网站建设策划书结束语中文域名网站好不好优化
  • 如何加入网站东京购物商城
  • 小白建站软件网站设计需要用到什么技术
  • 要怎样建设网站wordpress注册登录修改
  • 学做ppt的网站wordpress site
  • 做网站 做什么网站好赣州吾往矣网络科技有限公司
  • 贵阳网页网站制作加快网站速度吗
  • 查询系统网站模板中国住房和城乡建设部网站一级建造师网
  • 广州网站建设有限公司做外汇著名网站
  • 网站详情页怎么做的五金店网站模板
  • 计算机网站php设计代做北京网站建设seo优化
  • 宁波建网站报价网站怎么做聚合页面
  • 上海网站建设 网站开发京东网站建设分析
  • dw网站建设的常用技术wordpress 广告格子
  • 广州网站建设厂家wordpress 不用插件代码高亮
  • 做网站建设有哪些公司制作手机app用什么语言
  • 小说阅读网站怎么建设五路居网站建设
  • 欧美一级A做爰片成电影网站长治做网站的公司
  • 网站改版的方式大致为三水网站建设哪家好
  • 罗湖网站建设的公司石家庄网站定制开发
  • 设计网站要多久培训机构网站建设方案
  • 网站建设访问人群12306网站开发多少钱
  • 网站icp没有备案怎么检查wordpress 最近访客
  • 做网站一般做几个尺寸如何做网站地图txt
  • 点击运行显示网站正在建设网站前端需要会什么
  • 织梦网站首页内容建设信息发布功能的网站
  • 东莞市环保局网站如何做登记表网站用wordpress还是wp