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

Linux学习笔记3 xshell(lnmp)

xshell能连接虚拟机的前提是真机能够ping通虚拟机网址
进入xshell初始页面
xshell传输文件页面
图形化拖动传输方式
文件路径传输方式

ls显示文件
tar解压文件夹
cd进入该目录文件路径 pwd显示目录路径

解压缩另外一个文件,没有指定路径 就在默认目录

操作要在该目录文件下才可以

yum -y install pcre装一个库
装OpenSSL依赖文件 [root@localhost nginx-1.12.2]# yum -y install openssl pcre-devel
依赖检测[root@localhost nginx-1.12.2]# ./configure
禁用
[root@localhost nginx-1.12.2]# yum -y install zlib
complete安装成功

[root@localhost nginx-1.12.2]# ./configure --without-http_gzip_module
依赖检测通过标志配置总结
[root@localhost nginx-1.12.2]# make && make install
四个配置文件显示 安装成功
[root@localhost nginx-1.12.2]# ls /usr/local/nginx/
conf html logs sbin
[root@localhost nginx-1.12.2]# cd /usr/local/nginx/
[root@localhost nginx]# pwd
/usr/local/nginx
[root@localhost nginx]# ls sbin/
nginx
[root@localhost nginx]# sbin/nginx
[root@localhost nginx]# ss -antulp | grep :80
tcp LISTEN 0 128 *:80 : users:((“nginx”,pid=59064,fd=6),(“nginx”,pid=59063,fd=6))
[root@localhost nginx]#
80 服务启动
关闭防火墙[root@localhost nginx]# systemctl stop firewalld.service
真机访问
内容与网页一样
装[root@localhost nginx]# yum -y install mariadb
在这里插入图片描述
yum安装的用systemctl来起服务
源码安装用绝对路径来起服务
源码安装:
下载对应操作系统的源码,exec,rpm
解压缩
安装对应依赖
./configure
make && make install

安装[root@localhost nginx]# yum -y install mariadb-server mariadb-devel
在这里插入图片描述

[root@localhost nginx]# systemctl start mariadb.service
[root@localhost nginx]# !ss
bash: !ss: command not found…
[root@localhost nginx]# !ss
ss -antulp | grep :80
tcp LISTEN 0 128 *:80 : users:((“nginx”,pid=59064,fd=6),(“nginx”,pid=59063,fd=6))
[root@localhost nginx]#
在这里插入图片描述
成功安装php
在这里插入图片描述
修改配置文件[root@localhost nginx]# vim conf/nginx.conf

:set nu 设置行号
u撤销前一步操作
60 gg瞬移行
Ctrl+V
s删除#
I shift+# esc批量加
dd删除

sbin/nginx -s reload重启服务
手写页面vim html/test.php


http://www.kler.cn/news/160650.html

相关文章:

  • Harmony OS (eTS语言)的起源和演进
  • Android12蓝牙框架
  • 如何在Spring Boot中优雅地重试调用第三方API?
  • BearPi Std 板从入门到放弃 - 引气入体篇(8)(ADC)
  • 第三方支付通道的优势之(二)-----代扣
  • 【C++】时间time库
  • Stm32_串口的帧(不定长)数据接收
  • 在Linux系统中更换yum源为阿里云
  • postgreSql存储jsonb
  • GitLab发展史,这一篇你知道就够了
  • sqlite - sqlite3_exec - c++回调函数的处理
  • 要求CHATGPT高质量回答的艺术:提示工程技术的完整指南—第 14 章:受控生成提示
  • 浅谈web性能测试
  • Python实现FA萤火虫优化算法优化XGBoost分类模型(XGBClassifier算法)项目实战
  • 深度学习——第2章 深度学习开发环境搭建
  • Centos7安装GItLab(在线版)
  • LangChain 22 LangServe用于一键部署LangChain应用程序
  • ubuntu 18.04 pycharm安装
  • 前端使用插件预览pdf、docx、xlsx、pptx格式文件
  • Python之random和string库学习
  • XIAO ESP32S3之AI教程
  • 外包干了一个月,技术明显进步。。。。。
  • 如何5分钟用ChatGPT分析大厂的最新动向?判断最新发展趋势
  • Nginx配置反向代理与负载均衡
  • elasticsearch 是如何实现 master 选举的?
  • UniApp H5 跨域代理配置并使用(配置manifest.json、vue.config.js)
  • Android studio 工程的 module 依赖关系图绘制 、 Android Module 依赖关系的可视化实现
  • Nginx的反向代理与负载均衡
  • 人工智能学习8(集成学习之xgboost)
  • 配置和管理VLAN