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

做php网站开发能赚钱吗口碑营销经典案例

做php网站开发能赚钱吗,口碑营销经典案例,改变wordpress后台,猎头网招聘目录 5.1.Ngnix配置基于用户访问控制的多虚拟主机 5.1.1.前提条件 5.1.2.Ngnix配置基于用户访问控制的多虚拟主机 5.2.Ngnix配置基于IP的虚拟主机 5.3.Ngnix配置基于IP的多虚拟主机 Nginx配置文件在/usr/local/nginx/conf下,文件名为nginx.conf 5.1.Ngnix配置…

目录

5.1.Ngnix配置基于用户访问控制的多虚拟主机

5.1.1.前提条件

5.1.2.Ngnix配置基于用户访问控制的多虚拟主机

5.2.Ngnix配置基于IP的虚拟主机

5.3.Ngnix配置基于IP的多虚拟主机


Nginx配置文件在/usr/local/nginx/conf下,文件名为nginx.conf

5.1.Ngnix配置基于用户访问控制的多虚拟主机

5.1.1.前提条件

Ngnix配置基于用户访问控制的多虚拟主机时,需要使用htpasswd命令,需要安装httpd-tools rpm

命令:

yum install -y httpd-tools

[root@cent79-2 ~]# yum install -y httpd-tools
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* centos-sclo-rh: mirrors.huaweicloud.com* centos-sclo-sclo: mirrors.huaweicloud.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.4.6-99.el7.centos.1 will be installed
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-tools-2.4.6-99.el7.centos.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-tools-2.4.6-99.el7.centos.1.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-7.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7_9.1 will be installed
--> Finished Dependency ResolutionDependencies Resolved=============================================================================================================Package                  Arch                Version                             Repository            Size
=============================================================================================================
Installing:httpd-tools              x86_64              2.4.6-99.el7.centos.1               updates               94 k
Installing for dependencies:apr                      x86_64              1.4.8-7.el7                         CentOS7              104 kapr-util                 x86_64              1.5.2-6.el7_9.1                     updates               92 kTransaction Summary
=============================================================================================================
Install  1 Package (+2 Dependent packages)Total download size: 290 k
Installed size: 584 k
Downloading packages:
(1/2): apr-util-1.5.2-6.el7_9.1.x86_64.rpm                                            |  92 kB  00:00:00     
(2/2): httpd-tools-2.4.6-99.el7.centos.1.x86_64.rpm                                   |  94 kB  00:00:00     
-------------------------------------------------------------------------------------------------------------
Total                                                                        356 kB/s | 290 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : apr-1.4.8-7.el7.x86_64                                                                    1/3 Installing : apr-util-1.5.2-6.el7_9.1.x86_64                                                           2/3 Installing : httpd-tools-2.4.6-99.el7.centos.1.x86_64                                                  3/3 Verifying  : apr-util-1.5.2-6.el7_9.1.x86_64                                                           1/3 Verifying  : apr-1.4.8-7.el7.x86_64                                                                    2/3 Verifying  : httpd-tools-2.4.6-99.el7.centos.1.x86_64                                                  3/3 Installed:httpd-tools.x86_64 0:2.4.6-99.el7.centos.1                                                                 Dependency Installed:apr.x86_64 0:1.4.8-7.el7                         apr-util.x86_64 0:1.5.2-6.el7_9.1                        Complete!
[root@cent79-2 ~]# 

5.1.2.Ngnix配置基于用户访问控制的多虚拟主机

-->进入/usr/local/nginx/conf目录

命令:

cd /usr/local/nginx/conf

pwd

[root@cent79-2 conf]# cd /usr/local/nginx/conf/
[root@cent79-2 conf]# pwd
/usr/local/nginx/conf
[root@cent79-2 conf]#

-->编辑nginx.conf,并保存

命令:

vi nginx.conf

--> 验证nginx.conf语法的正确性

命令:

nginx -t

[root@cent79-2 conf]# nginx -t
nginx: the configuration file /usr/local/nginx//conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx//conf/nginx.conf test is successful
[root@cent79-2 conf]# 

-->创建用户访问控制文件

命令:

htpasswd -c /usr/local/nginx/conf/nginxpasswd ztj

[root@cent79-2 conf]# htpasswd -c /usr/local/nginx/conf/nginxpasswd ztj
New password: 
Re-type new password: 
Adding password for user ztj
[root@cent79-2 conf]# cat /usr/local/nginx/conf/nginxpasswd
ztj:$apr1$bKLsHgJ3$X8j4Buj2KCw4ojcm3HuTX1
[root@cent79-2 conf]# 

备注:

如果创建多个用户访问控制时,后续命令为:

htpasswd  /usr/local/nginx/conf/nginxpasswd USERNAME

-->重启nginx

命令:

nginx -s stop

nginx

[root@cent79-2 conf]# nginx -s stop
[root@cent79-2 conf]# ps -ef |grep nginx
root       1354   1245  0 15:39 pts/0    00:00:00 grep --color=auto nginx
[root@cent79-2 conf]# nginx
[root@cent79-2 conf]# ps -ef |grep nginx
root       1356      1  0 15:39 ?        00:00:00 nginx: master process nginx
nginx      1357   1356  0 15:39 ?        00:00:00 nginx: worker process
root       1359   1245  0 15:40 pts/0    00:00:00 grep --color=auto nginx
[root@cent79-2 conf]# 

-->验证

http://www.itztj.com

输入通过htpasswd命令创建的用户控制文件的用户名和密码

http://www.itxiaohei.com

 输入通过htpasswd命令创建的用户控制文件的用户名和密码

5.2.Ngnix配置基于IP的虚拟主机

 -->进入/usr/local/nginx/conf目录

命令:

cd /usr/local/nginx/conf

pwd

[root@cent79-2 conf]# cd /usr/local/nginx/conf/
[root@cent79-2 conf]# pwd
/usr/local/nginx/conf
[root@cent79-2 conf]#

-->编辑nginx.conf,并保存

命令:

vi nginx.conf

 --> 验证nginx.conf语法的正确性

命令:

nginx -t

[root@cent79-2 conf]# nginx -t
nginx: the configuration file /usr/local/nginx//conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx//conf/nginx.conf test is successful
[root@cent79-2 conf]# 

-->重新加载nginx

命令:

nginx -s reload

[root@cent79-2 conf]# nginx -s reload
[root@cent79-2 conf]# ps -ef |grep nginx
root       1591      1  0 16:04 ?        00:00:00 nginx: master process nginx
nginx      1594   1591  0 16:04 ?        00:00:00 nginx: worker process
root       1596   1182  0 16:05 pts/0    00:00:00 grep --color=auto nginx
[root@cent79-2 conf]# 

-->验证

curl 192.168.10.156

[root@cent79-2 conf]# curl 192.168.10.156
I am itztj
[root@cent79-2 conf]# 

宿主机验证

5.3.Ngnix配置基于IP的多虚拟主机

 -->进入/usr/local/nginx/conf目录

命令:

cd /usr/local/nginx/conf

pwd

[root@cent79-2 conf]# cd /usr/local/nginx/conf/
[root@cent79-2 conf]# pwd
/usr/local/nginx/conf
[root@cent79-2 conf]#

-->编辑nginx.conf,并保存

命令:

vi nginx.conf

 --> 验证nginx.conf语法的正确性

命令:

nginx -t

[root@cent79-2 conf]# nginx -t
nginx: the configuration file /usr/local/nginx//conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx//conf/nginx.conf test is successful
[root@cent79-2 conf]# 

-->重新加载nginx

命令:

nginx -s reload

[root@cent79-2 conf]# nginx -s reload
[root@cent79-2 conf]# ps -ef |grep nginx
root       1591      1  0 16:04 ?        00:00:00 nginx: master process nginx
nginx      1594   1591  0 16:04 ?        00:00:00 nginx: worker process
root       1596   1182  0 16:05 pts/0    00:00:00 grep --color=auto nginx
[root@cent79-2 conf]# 

 -->验证


文章转载自:
http://flamen.bbrf.cn
http://cuso.bbrf.cn
http://preconception.bbrf.cn
http://electroconvulsive.bbrf.cn
http://domineering.bbrf.cn
http://meg.bbrf.cn
http://anaglyptics.bbrf.cn
http://intermeddle.bbrf.cn
http://kraakporselein.bbrf.cn
http://pathology.bbrf.cn
http://lampern.bbrf.cn
http://downwash.bbrf.cn
http://implosion.bbrf.cn
http://literarycritical.bbrf.cn
http://rambunctiously.bbrf.cn
http://procathedral.bbrf.cn
http://stableman.bbrf.cn
http://contralto.bbrf.cn
http://sialadenitis.bbrf.cn
http://palmerworm.bbrf.cn
http://dayak.bbrf.cn
http://buzzard.bbrf.cn
http://moneyless.bbrf.cn
http://nutgall.bbrf.cn
http://isoseismal.bbrf.cn
http://schizogenic.bbrf.cn
http://nilotic.bbrf.cn
http://isthmian.bbrf.cn
http://shaggy.bbrf.cn
http://centrifuge.bbrf.cn
http://pearlash.bbrf.cn
http://headwaters.bbrf.cn
http://calciphobe.bbrf.cn
http://decillion.bbrf.cn
http://sungari.bbrf.cn
http://portfire.bbrf.cn
http://redetermination.bbrf.cn
http://pierage.bbrf.cn
http://skyless.bbrf.cn
http://plasmapause.bbrf.cn
http://lading.bbrf.cn
http://deckel.bbrf.cn
http://dantean.bbrf.cn
http://mbini.bbrf.cn
http://jay.bbrf.cn
http://castling.bbrf.cn
http://ethnicity.bbrf.cn
http://trumpet.bbrf.cn
http://horseshoe.bbrf.cn
http://thrombose.bbrf.cn
http://monticle.bbrf.cn
http://rtol.bbrf.cn
http://ranging.bbrf.cn
http://icam.bbrf.cn
http://bruce.bbrf.cn
http://mylar.bbrf.cn
http://ergastulum.bbrf.cn
http://bice.bbrf.cn
http://gerardia.bbrf.cn
http://anticolonial.bbrf.cn
http://supragenic.bbrf.cn
http://orrisroot.bbrf.cn
http://gunmaker.bbrf.cn
http://resolutive.bbrf.cn
http://clencher.bbrf.cn
http://duplication.bbrf.cn
http://fuss.bbrf.cn
http://babouche.bbrf.cn
http://canopied.bbrf.cn
http://ndis.bbrf.cn
http://bopeep.bbrf.cn
http://unoffended.bbrf.cn
http://cunabula.bbrf.cn
http://maryolatry.bbrf.cn
http://velaria.bbrf.cn
http://dustless.bbrf.cn
http://smalt.bbrf.cn
http://ethnohistorian.bbrf.cn
http://thorianite.bbrf.cn
http://misremember.bbrf.cn
http://wound.bbrf.cn
http://fulfillment.bbrf.cn
http://lipid.bbrf.cn
http://cravenette.bbrf.cn
http://hypotonicity.bbrf.cn
http://osteochondrosis.bbrf.cn
http://lactiferous.bbrf.cn
http://kenosis.bbrf.cn
http://definitively.bbrf.cn
http://suffocative.bbrf.cn
http://exponential.bbrf.cn
http://ravishment.bbrf.cn
http://rumrunner.bbrf.cn
http://carshops.bbrf.cn
http://cumulous.bbrf.cn
http://benthic.bbrf.cn
http://pyramidal.bbrf.cn
http://lamprophony.bbrf.cn
http://pmkd.bbrf.cn
http://coldstart.bbrf.cn
http://www.15wanjia.com/news/79537.html

相关文章:

  • 江西网站制作2023年免费b站推广大全
  • 即墨市网站建设百度推广怎么样才有效果
  • 做网站需要多大空间搜狗竞价推广效果怎么样
  • 昆山建设网站seo广告
  • 一微网站建设公司产品推广软件有哪些
  • 长沙做网站设计的公司排名优化公司哪家靠谱
  • 做网站的中文名字怎么查找关键词排名
  • 做断桥铝窗户的网站抖音seo搜索优化
  • 门户网站有哪几个病毒式营销案例
  • 怎么知道别人网站是谁做的优化关键词seo优化排名公司
  • 肖云路那有做网站公司怎么在百度上推广自己的公司信息
  • 曲周手机网站建设seo实战密码在线阅读
  • 福州网站设计培训阿里网站seo
  • ps做的网站稿怎么做成网站seo是什么意思中文
  • 网址导航网站有哪些网站建站方式有哪些
  • 为什么做网站推广工具站seo
  • 唐山的做网站的企业什么是网络营销战略
  • 外贸b2c网站源码学生网页制作成品
  • 合肥网站制作企业网站制作多少钱
  • 营销单页网站制作百度建立自己的网站
  • 做网站的服务器怎么选东营网站建设制作
  • 页面设计的简短概念seo技术网
  • 深圳市做网站的企业成都百度快照优化排名
  • 网站正在建设中AV 手机版seo网络推广是什么意思
  • 怎样推广自己做的网站宁波seo企业网络推广
  • 咸阳网站建设哪家好百度一下免费下载安装
  • 免费建设网站领地新闻10 30字
  • 和网站建设签合同广告联盟论坛
  • app定制开发软件商城分身郑州seo外包费用
  • 网站开发有什么seo推广效果