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

西宁做网站_君博先进wordpress改登录地址

西宁做网站_君博先进,wordpress改登录地址,商务网站建设找哪家,企业管理系统包括哪些第十六次7.29 1.静态页面 1安装httpd [rootweb ~]# yum -y install httpd 2.真机访问页面 [rootweb html]# echo 静态html文件 index.html 传入照片再次访问 静态资源#xff0c;根据开发着保存在项目资源目录中的路径访问静态页面的资源 2.Apache 1.安…第十六次7.29 1.静态页面 1安装httpd [rootweb ~]# yum -y install httpd 2.真机访问页面 [rootweb html]# echo 静态html文件 index.html 传入照片再次访问 静态资源根据开发着保存在项目资源目录中的路径访问静态页面的资源 2.Apache 1.安装http [roothttp ~]# yum -y install httpd 2.查看安装情况及安装的资源文件 [roothttp ~]# rpm -ql httpd 3.查看配置文件 [roothttp ~]# vim /etc/httpd/conf/httpd.conf 4.启动httpd服务 [roothttp ~]# systemctl start httpd 5.查看端口 [roothttp ~]# netstat -lnput|grep http tcp6       0     0 :::80                   :::*                   LISTEN     1503/httpd       不能直接停用防火墙可以单独打开端口 查看防⽕墙是否启⽤若启⽤则设置 apache服务可通⾏规则 [roothttp ~]# firewall-cmd --zonepublic --add-servicehttp #设置防火墙方向apache success 打开服务器不会马上生效需要重启或重新加载服务 停用防火墙或者打开指定端口 [roothttp ~]# firewall-cmd --zonepublic -add-port80/tcp --permanet 6.页面写入 [roothttp ~]# touch /var/www/html/index.html [roothttp ~]# mkdir /var/www/html/img/ [roothttp ~]# vim /var/www/html/index.html !doctype html htmlheadmeta charsetutf-8title正方形/titlestylediv{background-color:red;width:120px;height:120px;}   /style/head bodydiv正方形/div  img srcimg/1.jpg/body /html [roothttp ~]# systemctl reload httpd   #重载配置单 7.真机测试 静态文件如果无法在浏览器上访问就一定无法加载在页面上 3. 1.下载nginx [rootnginx ~]# wget https://nginx.org/download/nginx-1.27.0.tar.gz 2.解压 [rootnginx ~]# tar -zxvf nginx-1.27.0.tar.gz 3.开启编译nginx [rootnginx nginx-1.27.0]# cd nginx-1.27.0 [rootnginx ~]# yum -y install pcre-devel openssl-devel make gcc gcc-devel ./configure --prefix/usr/local/nginx --usernginx --groupnginx --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-stream [rootnginx nginx-1.27.0]# make make install [rootnginx nginx-1.27.0]# useradd -s /bin/nologin -M nginx [rootnginx nginx]# cp -r conf/ conf.bak [rootnginx nginx]# ./sbin/nginx [rootnginx nginx]# netstat -lnput|grep nginx tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14100/nginx: master ​ 4.开放端口 [rootnginx nginx]# firewall-cmd --zonepublic --add-port80/tcp --permanent success 5.重载防火墙 [rootnginx nginx]# firewall-cmd --reload success 6.启动和关闭nginx服务 [rootnginx nginx]# ln -s /usr/local/nginx/sbin/nginx /usr/bin/ [rootnginx nginx]# ls -l /usr/bin/nginx lrwxrwxrwx. 1 root root 27 7月 29 16:15 /usr/bin/nginx - /usr/local/nginx/sbin/nginx [rootnginx nginx]# nginx   #80端口被占用 nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) ^C [rootnginx nginx]# nginx -s stop [rootnginx nginx]# netstat -lnput|grep nginx [rootnginx nginx]# nginx [rootnginx nginx]# netstat -lnput|grep nginx   #已启用 tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14194/nginx: master ./nginx #启动 ./nginx -s stop #关闭 ./nginx -s reload #重新启动 指令在命令行使用是因为在$PATH目录中能找到这个可执行文件 7.脚本启动nginx服务 [rootnginx nginx]# vim ~/nginx.sh #!/bin/bash /usr/local/sbin/nginx /dev/null netstat -lnput|grep nginx if [ $? -eq 0 ];thenecho ningx正在执行或者是80被占用 ​ fi [rootnginx nginx]# nginx [rootnginx nginx]# source ~/nginx.sh tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14232/nginx: master ningx正在执行或者是80被占用 [rootnginx nginx]# nginx -s stop [rootnginx nginx]# source ~/nginx.sh ​ 8. [rootnginx nginx]# vim /usr/lib/systemd/system/nginx.service [Unit] Descriptionnginx Afternetwork.target ​ [Service] Typeforking PIDFile/usr/local/nginx/logs/nginx.pid ExecStart/usr/local/nginx/sbin/nginx ExecReload/usr/local/nginx/sbin/nginx -s reload ExecStop/usr/local/nginx/sbin/nginx -s stop PrivateTmpFlase ​ [Install] WantedBymulti-user.target ​ [rootnginx nginx]# systemctl daemon-reload [rootnginx nginx]# systemctl stop nginx [rootnginx nginx]# systemctl restart nginx ​ 9.真机测试 监控模块 [rootnginx nginx]# vim /usr/local/nginx/conf/nginx.conf   #添加47       location /status{48         stub_status on;49         access_log off;50 }51 [rootnginx nginx]# nginx 虚拟配置
http://www.hkea.cn/news/14275747/

相关文章:

  • 如何进入网站那个网站seo做的好的
  • 上海网站建设的网wap网站 链接微信
  • Wordpress网站开发收费长春火车站需要核酸检测报告吗
  • 网站三要素怎么做深圳开发公司网站
  • 新手做网站做什么样的做网站技术人员
  • 网络运维和网站开发玩具 网站模板
  • 广东省住房与城乡建设部网站照片书那个网站做的好
  • 网站建设开票的税收分类帮做非法网站
  • 北京有什么网上推广的网站吗平面设计师招聘
  • 建设校园网站公司网站维护的方式有哪几种
  • 网站开发非常之旅网站建设对企业重要性
  • wordpress建站教程道一在中国如何申请域名
  • 制作一个学校门户网站wordpress博客主题zip
  • 网站建设资讯站网页素材网
  • 网站调用优酷视频去除广告的方法新乡网站建设报价
  • 重庆门户网站排名注册网站免费注册ins
  • 通辽网站建设公司个人网页设计要素
  • 视频网站能备案吗站长申论
  • html购物网站代码58企业网站如何做
  • 网页升级访问新域名久久seo正规吗
  • 无为网站定制林州网站建设哪家便宜
  • 重庆江北网站建设公司西安网络建设公司
  • 学院门户网站建设必要性手机app与电脑网站的区别
  • 深圳专业网站制作技术百度统计会对原网站产生影响吗
  • 永康新站优化软件免费下载的网站大全
  • 家装企业网站系统下载南昌做网站的公司多不多
  • 北京响应式的网站58网站怎么做优化
  • 绥化市建设工程网站招投标北京游戏公司排名
  • 网站引流怎么做浙江专业网站seo
  • 域名和主机搭建好了怎么做网站安装wordpress提示500错误