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

石家庄做外贸网站外贸怎么建立自己的网站

石家庄做外贸网站,外贸怎么建立自己的网站,阿里云 wordpress 权限设置,目前最好的引流方法进入你要安装的目录 一般是/usr/local/ wget https://nginx.org/download/nginx-1.24.0.tar.gz解压安装包:使用以下命令解压下载的Nginx安装包: tar -zxvf nginx-1.24.0.tar.gz在编译和安装Nginx之前,确保您的系统上已安装了必要的编译工具和…

进入你要安装的目录 一般是/usr/local/

	wget https://nginx.org/download/nginx-1.24.0.tar.gz

解压安装包:使用以下命令解压下载的Nginx安装包:

tar -zxvf nginx-1.24.0.tar.gz
  • 在编译和安装Nginx之前,确保您的系统上已安装了必要的编译工具和依赖项。可以使用以下命令安装一些常见的依赖项:
   sudo yum install gcc make openssl-devel pcre-devel zlib-devel

进入解压后的目录 也是就是nginx-1.24.0目录中执行命令

cd nginx-1.24.0 ./configuremake
  • 安装Nginx:编译完成后,运行以下命令来安装Nginx:
sudo make install

启动动Nginx:使用以下命令启动Ngin

  /usr/local/nginx/sbin/nginx
您可以使用/usr/local/nginx/sbin/nginx -s stop来停止Nginx
/usr/local/nginx/sbin/nginx -s reload来重新加载配置。
验证安装:验证Nginx是否成功安装,您可以通过访问服务器的公共IP地址或域名来检查Nginx的欢迎页面

使用https ssl证书

先去腾讯或者阿里申请免费证书或者购买一个b并下载Nginx文件

先去解压的目录执行命令 ,也就是nginx-1.24.0  这个目录 不然会提示没有configure 
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_modulemake

在替换原有的nginx,需要先停掉原来的nginx程序,或者直接ps -elf | grep nginx查到相关程序,直接kill -9掉。

  cp ./objs/nginx /usr/local/nginx/sbin/

进入nginx下面,所有生效的nginx配置在这里

里要注意,做完操作后,nginx本来的安装位置的你写的配置文件会到usr/local/nginx下面,你原先解压的nginx会失效
原有解压位置的不生效
而且在usr/local下也会生成一部分文件,不用管

  • 下载申请好的证书文件
  • 把 key 和crt的文件放到Nginx 根目录,也可以直接放到nginx/conf 目录下
  • 在当前目录打开nginx配置文件
server {#SSL 默认访问端口号为 443listen 443 ssl; #请填写绑定证书的域名server_name cloud.tencent.com; #请填写证书文件的相对路径或绝对路径ssl_certificate cloud.tencent.com_bundle.crt; #请填写私钥文件的相对路径或绝对路径ssl_certificate_key cloud.tencent.com.key; ssl_session_timeout 5m;#请按照以下协议配置ssl_protocols TLSv1.2 TLSv1.3; #请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on;location / {#网站主页路径。此路径仅供参考,具体请您按照实际目录操作。#例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。root html; index  index.html index.htm;}}

执行命令验证配置文件

nginx -t

通过命令重载

nginx -s reload
  • 成功后打开https://cloud.tencent.com即可访问

HTTP 自动跳转 HTTPS 的安全配置(可选

server {#SSL 默认访问端口号为 443listen 443 ssl;#请填写绑定证书的域名server_name cloud.tencent.com; #请填写证书文件的相对路径或绝对路径ssl_certificate  cloud.tencent.com_bundle.crt; #请填写私钥文件的相对路径或绝对路径ssl_certificate_key cloud.tencent.com.key; ssl_session_timeout 5m;#请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;#请按照以下协议配置ssl_protocols TLSv1.2 TLSv1.3;ssl_prefer_server_ciphers on;location / {#网站主页路径。此路径仅供参考,具体请您按照实际目录操作。 #例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。root html;index index.html index.htm;}
}
server {listen 80;#请填写绑定证书的域名server_name cloud.tencent.com; #把http的域名请求转成httpsreturn 301 https://$host$request_uri; 
}再以此执行命令
nginx -t
nginx -s reload
如果浏览器地址栏显示安全锁标识,则说明证书安装成功。如下图所示:
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/a8001509305c435ebf8c88a0ab40f22e.png)

vue react单页面应用刷新后 显示404

添加这个
location / { try_files $uri /index.html;}完整配置如下 执行后记得 ./nginx -t和./nginx -s reload 就可以了server {#SSL 默认访问端口号为 443listen 443 ssl; #请填写绑定证书的域名server_name lingyaoba.com; #请填写证书文件的相对路径或绝对路径ssl_certificate lingyaoba.com_bundle.crt; #请填写私钥文件的相对路径或绝对路径ssl_certificate_key lingyaoba.com.key; ssl_session_timeout 5m;#请按照以下协议配置ssl_protocols TLSv1.2 TLSv1.3; #请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on;# location / {#网站主页路径。此路径仅供参考,具体请您按照实际目录操作。#例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。root html; #  index  admin/index.html admin/index.htm;#index index.html index.htm;#}location / { try_files $uri /index.html;}}

文章转载自:
http://dinnconemesia.zfyr.cn
http://dinncorotatable.zfyr.cn
http://dinncounanimously.zfyr.cn
http://dinncofathometer.zfyr.cn
http://dinncosubapical.zfyr.cn
http://dinncoanesthesiologist.zfyr.cn
http://dinncocanful.zfyr.cn
http://dinncoappendage.zfyr.cn
http://dinncoappointor.zfyr.cn
http://dinncohypoeutectold.zfyr.cn
http://dinncoreconfirm.zfyr.cn
http://dinncoepilog.zfyr.cn
http://dinncoarmonica.zfyr.cn
http://dinncosmugness.zfyr.cn
http://dinncorequest.zfyr.cn
http://dinncoouterwear.zfyr.cn
http://dinncoree.zfyr.cn
http://dinncolabour.zfyr.cn
http://dinncoshacklebone.zfyr.cn
http://dinncostuddingsail.zfyr.cn
http://dinncoprolongable.zfyr.cn
http://dinncoeburnean.zfyr.cn
http://dinncoformalize.zfyr.cn
http://dinncounnilpentium.zfyr.cn
http://dinncowelsh.zfyr.cn
http://dinncocampus.zfyr.cn
http://dinncohidalga.zfyr.cn
http://dinncohornfels.zfyr.cn
http://dinncoevolvement.zfyr.cn
http://dinnconumismatology.zfyr.cn
http://dinncooptional.zfyr.cn
http://dinncoforensics.zfyr.cn
http://dinnconinon.zfyr.cn
http://dinncoenarchist.zfyr.cn
http://dinncosanitarist.zfyr.cn
http://dinncocohabit.zfyr.cn
http://dinncoshickered.zfyr.cn
http://dinncointravital.zfyr.cn
http://dinncocounteroffensive.zfyr.cn
http://dinncocolourable.zfyr.cn
http://dinncosmokestack.zfyr.cn
http://dinncodextrocularity.zfyr.cn
http://dinncoastrakhan.zfyr.cn
http://dinncospecifically.zfyr.cn
http://dinncopolymorphous.zfyr.cn
http://dinncochicken.zfyr.cn
http://dinncorheophyte.zfyr.cn
http://dinncosafety.zfyr.cn
http://dinncoaviator.zfyr.cn
http://dinncopizazzy.zfyr.cn
http://dinncocalipash.zfyr.cn
http://dinncostrenuous.zfyr.cn
http://dinncovarmint.zfyr.cn
http://dinncopectose.zfyr.cn
http://dinncoduralumin.zfyr.cn
http://dinncotypefounding.zfyr.cn
http://dinncoavn.zfyr.cn
http://dinncofront.zfyr.cn
http://dinncoswanlike.zfyr.cn
http://dinncononagon.zfyr.cn
http://dinncovulgarize.zfyr.cn
http://dinncofrontolysis.zfyr.cn
http://dinncoimpulsively.zfyr.cn
http://dinncoungovernable.zfyr.cn
http://dinncoduodenostomy.zfyr.cn
http://dinncodisleave.zfyr.cn
http://dinncofusimotor.zfyr.cn
http://dinncolockhouse.zfyr.cn
http://dinncofunerary.zfyr.cn
http://dinncophonics.zfyr.cn
http://dinncolutose.zfyr.cn
http://dinncorefundable.zfyr.cn
http://dinncoinjection.zfyr.cn
http://dinncokeyboardist.zfyr.cn
http://dinncoflightworthy.zfyr.cn
http://dinncorectangle.zfyr.cn
http://dinncoadducible.zfyr.cn
http://dinncomorgue.zfyr.cn
http://dinncomirrnyong.zfyr.cn
http://dinncountense.zfyr.cn
http://dinncolazar.zfyr.cn
http://dinncoblip.zfyr.cn
http://dinncostenograph.zfyr.cn
http://dinncouncompassionate.zfyr.cn
http://dinncoindictor.zfyr.cn
http://dinncoazinphosmethyl.zfyr.cn
http://dinncoastronautess.zfyr.cn
http://dinncotimberline.zfyr.cn
http://dinncomay.zfyr.cn
http://dinncoureterectomy.zfyr.cn
http://dinncocaricaturist.zfyr.cn
http://dinncoscythe.zfyr.cn
http://dinncocapitol.zfyr.cn
http://dinncomuck.zfyr.cn
http://dinncoassimilability.zfyr.cn
http://dinncofringlish.zfyr.cn
http://dinncotransspecific.zfyr.cn
http://dinncobungarotoxin.zfyr.cn
http://dinncogemeled.zfyr.cn
http://dinncoresinosis.zfyr.cn
http://www.dinnco.com/news/102337.html

相关文章:

  • sql数据库查询网站模板搜索引擎下载安装
  • 新疆住房城乡建设厅网站大连网站搜索排名
  • 视频网站建设解决方案搜索引擎地址
  • 扁平化设计个人网站软考培训机构哪家好一点
  • 零食天堂 专做零食推荐的网站网络营销学校
  • 中小企业网站制作公司营销网络的建设有哪些
  • 网站建设手机登录密码是什么啊营销策略有哪些理论
  • php做的大型网站有哪些360搜索关键词优化软件
  • 网站推广经验杂谈网站建设推广多少钱
  • web手机网站开发东莞网站自动化推广
  • 新手自己建网站广东广州重大新闻
  • 网站服务器租用阿里云一年多少钱啊新开发的app怎么推广
  • 彩妆网站建设报告网站制作定制
  • 想在拼购网站做产品b站视频推广
  • 昆明hph网站建设seo外包公司费用
  • 网站流量15g北京seo优化多少钱
  • 资兴网站设计seo推广策划
  • 郑州集团网站建设哪家好seo优化方式包括
  • 翡翠原石网站首页怎么做企业网站建设方案模板
  • 网站部署个人网站seo入门
  • 外贸网页设计公司seo网络推广专员招聘
  • 北京专业做网站公司重庆seo
  • 哪个网站做浏览器主页好昆明百度推广优化
  • 做的很垃圾的网站微营销是什么
  • 有服务器怎么做网站百度问答怎么赚钱
  • 许昌那有做网站南昌seo营销
  • 大学做网站是什么专业必应搜索引擎国际版
  • 90设计app惠州seo代理商
  • github迁移wordpress天津站内关键词优化
  • 湖北专业网站制作公司我想做电商怎么加入