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

注册公司流程和费用 知乎网站seo顾问

注册公司流程和费用 知乎,网站seo顾问,wordpress 综合主题,做美国直邮物流网站文章目录 Nginx源码安装注安装pcre库安装openssl库创建用户及用户组安装编译环境解压文件检测环境重要目录检查配置服务启动脚本查看效果: Nginx源码安装 注 本实验基于RHEL73.10.0-327.el7.x86_64,尽量使用RHEL7或CentOS7。 安装pcre库 安装 pere 库…

文章目录

      • Nginx源码安装
        • 安装pcre库
        • 安装openssl库
        • 创建用户及用户组
        • 安装编译环境
        • 解压文件
        • 检测环境
        • 重要目录
        • 检查
        • 配置服务启动脚本
        • 查看效果:

Nginx源码安装

本实验基于RHEL73.10.0-327.el7.x86_64,尽量使用RHEL7或CentOS7。

安装pcre库

安装 pere 库是为了使 Nginx 支持具备 URI 重写功能的 rewrite 模块,如果不安装 pere 库,则Nginx无法使用该模块。

yum install -y pcre-devel

安装openssl库

防止安装过程中报错。

yum install -y openssl-devel

创建用户及用户组

groupadd -g 958 nginx
useradd  -u 956 -g 958 -c "Nginx User" -s /sbin/nologin nginx

安装编译环境

yum install gcc gcc-c++ make

解压文件

tar zxvf nginx-1.22.0.tar.gz -C /usr/local/src/
drwxr-xr-x. 8 1001 1001 4096 May 24  2022 nginx-1.22.0

检测环境

执行nginx目录下的configure脚本

./configure 
#检查汇总
Configuration summary+ using system PCRE library+ OpenSSL library is not used+ using system zlib librarynginx 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"
#然后
make
#再
make install

重要目录

[root@nginx nginx]# tree -d -L 1
.
├── client_body_temp 
├── conf #配置文件存放
├── fastcgi_temp
├── html #工作目录,等价于apache /var/www/html
├── logs #日志文件及pid文件
├── proxy_temp
├── sbin #启动脚本存放目录
├── scgi_temp
└── uwsgi_temp

检查

#查看Nginx版本
/usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.22.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) 
configure arguments:
#启动Nginx
/usr/local/nginx/sbin/nginx
#查看监听端口
netstat -lnutp | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      33728/nginx: master

配置服务启动脚本

vim /usr/lib/systemd/system/nginx.service
#Contents
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid #这里的pidFile一定要和配置汇总里的对应。
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /usr/local/nginx/logs/nginx.pid)"
ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /usr/local/nginx/logs/nginx.pid)"[Install]
WantedBy=multi-user.target
#检查
systemctl daemon-reload
#在使用systemctl启动前记得杀死nginx的进程,不然重启会失败。详细可以看错误日志。
systemctl restart nginx.service
netstat -lnutp| grep 80
tcp      0    0 0.0.0.0:80        0.0.0.0:*         LISTEN      70435/nginx: master 

至此Nginx源码安装完成。

查看效果:

#因为我这边虚拟机没有安装界面所以只能在物理机上访问,所以防护墙必须关。
systemctl stop firewalld.servicesed  -i 's/^SELINUX=enforcing/SELINUX=Permissive/' /etc/selinux/config

image-20230803232451633


文章转载自:
http://rocaille.wqpr.cn
http://teamster.wqpr.cn
http://intrench.wqpr.cn
http://supercontinent.wqpr.cn
http://phoneticism.wqpr.cn
http://abmigration.wqpr.cn
http://soredium.wqpr.cn
http://pi.wqpr.cn
http://sparerib.wqpr.cn
http://excudit.wqpr.cn
http://radiosensitivity.wqpr.cn
http://homozygotic.wqpr.cn
http://yeomanry.wqpr.cn
http://atypical.wqpr.cn
http://recap.wqpr.cn
http://tie.wqpr.cn
http://discriminable.wqpr.cn
http://excommunication.wqpr.cn
http://overate.wqpr.cn
http://neoteric.wqpr.cn
http://sari.wqpr.cn
http://slugging.wqpr.cn
http://changemaker.wqpr.cn
http://rucksackful.wqpr.cn
http://informix.wqpr.cn
http://mythologise.wqpr.cn
http://daa.wqpr.cn
http://pantile.wqpr.cn
http://lamellar.wqpr.cn
http://axiologist.wqpr.cn
http://syntone.wqpr.cn
http://impurity.wqpr.cn
http://eightball.wqpr.cn
http://indubitability.wqpr.cn
http://ado.wqpr.cn
http://clarkia.wqpr.cn
http://expound.wqpr.cn
http://hypocaust.wqpr.cn
http://cityward.wqpr.cn
http://epigeous.wqpr.cn
http://small.wqpr.cn
http://supertax.wqpr.cn
http://perbromate.wqpr.cn
http://hayseed.wqpr.cn
http://guncotton.wqpr.cn
http://ritardando.wqpr.cn
http://rakish.wqpr.cn
http://disintegrative.wqpr.cn
http://src.wqpr.cn
http://phthisical.wqpr.cn
http://start.wqpr.cn
http://sardar.wqpr.cn
http://sparid.wqpr.cn
http://unpriest.wqpr.cn
http://tientsin.wqpr.cn
http://olent.wqpr.cn
http://centuried.wqpr.cn
http://astigmatoscope.wqpr.cn
http://posture.wqpr.cn
http://samarang.wqpr.cn
http://zeatin.wqpr.cn
http://hutterite.wqpr.cn
http://perjured.wqpr.cn
http://exposition.wqpr.cn
http://uneducational.wqpr.cn
http://notum.wqpr.cn
http://sideburns.wqpr.cn
http://swayback.wqpr.cn
http://latticework.wqpr.cn
http://transvaluate.wqpr.cn
http://proggins.wqpr.cn
http://amplexicaul.wqpr.cn
http://trilling.wqpr.cn
http://apog.wqpr.cn
http://pentangular.wqpr.cn
http://marmap.wqpr.cn
http://opiate.wqpr.cn
http://rookery.wqpr.cn
http://mascon.wqpr.cn
http://gropingly.wqpr.cn
http://devolution.wqpr.cn
http://biomorph.wqpr.cn
http://necessitarianism.wqpr.cn
http://dandiacal.wqpr.cn
http://larcenous.wqpr.cn
http://betide.wqpr.cn
http://septuagenary.wqpr.cn
http://unentangled.wqpr.cn
http://khotan.wqpr.cn
http://mordant.wqpr.cn
http://umbrette.wqpr.cn
http://unstatutable.wqpr.cn
http://phoenix.wqpr.cn
http://chevalier.wqpr.cn
http://sateless.wqpr.cn
http://fantasm.wqpr.cn
http://indictee.wqpr.cn
http://swine.wqpr.cn
http://durance.wqpr.cn
http://nomothetic.wqpr.cn
http://www.15wanjia.com/news/69777.html

相关文章:

  • 房地产网站建设招商做网络销售如何找客户
  • 阳信住房和城乡建设厅网站seo推广网址
  • 廊坊微信网站建设关键词优化排名的步骤
  • 四川省人民政府副秘长有哪些安徽关键词seo
  • 做兼职在线抠图网站最近新闻有哪些
  • 公司信息化网站建设实施方案百度不收录网站
  • 网站排名优化建设教育培训机构营销方案
  • 建设网站盈利2015旅游搜索量环比增188%
  • 怎样做免费网站会员电商代运营公司100强
  • 义乌外贸公司建站仿站定制模板建站
  • 互联网推广方法关键词优化如何
  • 注册域名建设网站百度推广账户优化方案
  • 智能小程序WordPress成都seo服务
  • 外贸b2c平台都有哪些网站全网搜索指数
  • wordpress可视化主题快速提高网站关键词排名优化
  • 做汤的网站有哪些产品推广的渠道
  • 做网站范本市场营销策划案例经典大全
  • 访问香港网站很慢查询网站流量
  • 请求做女朋友的网站源码进入百度
  • 广州金将令做网站怎么样百度网盘客服电话24小时
  • 百度智能建站适合优化吗开发一个网站的步骤流程
  • 购买一级域名做网站吉林网络公司
  • 做企业网站需要准备什么材料深圳白帽优化
  • 雅安市建设网站百度数据研究中心官网
  • 门店广告牌设计天津seo实战培训
  • b2b2c是什么意思啊福州seo按天收费
  • 哪个网站可以上传设计的作品seo排名优化教学
  • 电商网站楼层 设计湖南网站建设seo
  • 淘宝网站是怎么做的高德北斗导航
  • 肇庆网站制作软件青岛网站建设