Linux学习笔记3 xshell(lnmp)

xshell能连接虚拟机的前提是真机能够ping通虚拟机网址





装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安装成功](https://file.jishuzhan.net/article/1734051567281115138/1971c5b289172bec2b339840d73a30b2.webp) \[root@localhost nginx-1.12.2\]# ./configure --without-http_gzip_module ![依赖检测通过标志配置总结](https://file.jishuzhan.net/article/1734051567281115138/c7fa67c8951a1107ea8d115055feceac.webp) \[root@localhost nginx-1.12.2\]# make \&\& make install ![四个配置文件显示 安装成功](https://file.jishuzhan.net/article/1734051567281115138/43b00f4a4b6a7080a643ad49a66e2674.webp) \[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 服务启动](https://file.jishuzhan.net/article/1734051567281115138/634c0f10a7e2b89d819c9e54d20309fe.webp) 关闭防火墙\[root@localhost nginx\]# systemctl stop firewalld.service ![真机访问](https://file.jishuzhan.net/article/1734051567281115138/405d10247700941b932ca9666addc96b.webp) ![内容与网页一样](https://file.jishuzhan.net/article/1734051567281115138/9a83300ead56000ee22597c4b734661e.webp) 装\[root@localhost nginx\]# yum -y install mariadb ![在这里插入图片描述](https://file.jishuzhan.net/article/1734051567281115138/2e7782ef6d67c19c8b807a64f80ada58.webp) yum安装的用systemd来起服务 源码安装用绝对路径来起服务 源码安装: 下载对应操作系统的源码,exec,rpm 解压缩 安装对应依赖 ./configure make \&\& make install 安装\[root@localhost nginx\]# yum -y install mariadb-server mariadb-devel ![在这里插入图片描述](https://file.jishuzhan.net/article/1734051567281115138/53f5929454cf6c0a22828b51603fdf89.webp) \[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\]# ![在这里插入图片描述](https://file.jishuzhan.net/article/1734051567281115138/789278601ea6b17a28caf204f5dbfa0f.webp) ![成功安装php](https://file.jishuzhan.net/article/1734051567281115138/2a656267af8f1ac2baea9abd7ee937cf.webp) ![在这里插入图片描述](https://file.jishuzhan.net/article/1734051567281115138/ec2519b9d3121b1c990ccf3c4ed7a615.webp) 修改配置文件\[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

相关推荐
致***锌4 分钟前
期权怎么判断是不是主力合约?
笔记
AirDroid_cn30 分钟前
打开网页即可远程控制手机,Linux系统亦可使用
linux·智能手机·安卓·远程工作·远程控制·远程控制手机·远程投屏
Moonnnn.4 小时前
【单片机期末】单片机系统设计
笔记·单片机·嵌入式硬件·学习
bubiyoushang8885 小时前
Windows11 WSL2 Ubuntu编译安装perf工具
linux·运维·ubuntu
行云流水剑6 小时前
【学习记录】使用 Kali Linux 与 Hashcat 进行 WiFi 安全分析:合法的安全测试指南
linux·学习·安全
xuanwojiuxin7 小时前
linux panic-propagation
linux·运维·服务器
achene_ql9 小时前
select、poll、epoll 与 Reactor 模式
linux·服务器·网络·c++
藥瓿亭9 小时前
K8S认证|CKS题库+答案| 9. 网络策略 NetworkPolicy
linux·运维·docker·云原生·容器·kubernetes·cks
千千寰宇9 小时前
[数据传输/网络传输/序列化/计算机组成原理] 字节序/大小端
linux·计算机组成原理/硬件/半导体
LFloyue9 小时前
Linux离线(zip方式)安装docker
linux·docker