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

相关推荐

  1. Linux学习笔记3

    2023-12-10 11:02:06       32 阅读
  2. linux学习笔记

    2023-12-10 11:02:06       40 阅读
  3. Linux kernel 学习笔记

    2023-12-10 11:02:06       68 阅读
  4. Linux】ubantu学习笔记

    2023-12-10 11:02:06       60 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-10 11:02:06       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-10 11:02:06       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-10 11:02:06       82 阅读
  4. Python语言-面向对象

    2023-12-10 11:02:06       91 阅读

热门阅读

  1. Python——lambda匿名函数

    2023-12-10 11:02:06       59 阅读
  2. 第二十九章 控制到 XML 模式的映射 - 类名列表

    2023-12-10 11:02:06       45 阅读
  3. Linux centos7 扩展磁盘

    2023-12-10 11:02:06       50 阅读
  4. vue中的拖拽事件

    2023-12-10 11:02:06       57 阅读
  5. Let和Var的区别

    2023-12-10 11:02:06       56 阅读
  6. 项目记录:跨域问题解决方案

    2023-12-10 11:02:06       59 阅读
  7. js new 原理

    2023-12-10 11:02:06       55 阅读