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

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安装的用systemd来起服务
源码安装用绝对路径来起服务
源码安装:
下载对应操作系统的源码,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.lryc.cn/news/255705.html

相关文章:

  • 分享几个可以免费使用GPT工具
  • 一篇文章带你快速入门 Nuxt.js 服务端渲染
  • 导入JDBC元数据到Apache Atlas
  • 大数据项目——基于Django/协同过滤算法的房源可视化分析推荐系统的设计与实现
  • [网鼎杯 2020 朱雀组]phpweb1
  • 深度学习之注意力机制
  • WordPress:解决xmlrpc.php被扫描爆破的风险
  • Fiddler抓包模拟器(雷电模拟器)
  • RepidJson将内容写入文件
  • Endnote使用教程
  • java中用Thead创建线程和用Runnable创建线程的区别是什么?
  • 0013Java程序设计-基于Vue的上课签到系统的设计与实现
  • 2.修改列名与列的数据类型
  • [Firefly-Linux] RK3568 Ubuntu固件分区详解
  • SpringBoot项目访问resources下的静态资源
  • Qt之面试经验
  • 数据库基础概念与范式反范式总结
  • tanstack/react-query使用手册
  • camera2对摄像头编码h264
  • Apache solr XXE 漏洞(CVE-2017-12629)
  • ​HTML代码混淆技术:原理、应用和实现方法详解
  • quickapp_快应用_系统接口应用
  • sqlmap400报错问题解决
  • 【S32DS报错】-2-提示Error while launching command:arm-none-eabi-gdb –version错误
  • Windows核心编程 HOOK
  • P4 Qt如何添加qss样式表文件和添加图片资源
  • 【华为OD题库-085】路灯照明II-Java
  • 附录1、vuepress中的Markdown语法
  • 【matlab程序】matlab画螺旋图|旋转图
  • 计算三位数每位上数字的和