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

相关推荐
熙曦Sakura6 分钟前
【Linux网络】TCP全连接队列
linux·网络·tcp/ip
幸好我会魔法14 分钟前
使用githubPage+hexo搭建个人博客
笔记·github
jackson凌25 分钟前
【Java学习笔记】finalize方法
java·笔记·学习
脚比路长29 分钟前
win11 安装 wsl ubuntu 18.04后换源失败!
linux
能来帮帮蒟蒻吗36 分钟前
VUE3 -综合实践(Mock+Axios+ElementPlus)
前端·javascript·vue.js·笔记·学习·ajax·typescript
XQ丶YTY1 小时前
大二java第一面小厂(挂)
java·开发语言·笔记·学习·面试
菜鸟康1 小时前
Linux——CMake的快速入门上手和保姆级使用介绍、一键执行shell脚本
linux·运维·服务器
Always_away1 小时前
数据库系统概论|第七章:数据库设计—课程笔记
数据库·笔记·sql·学习
东京老树根1 小时前
SAP学习笔记 - 开发08 - Eclipse连接到 BTP Cockpit实例
笔记·学习
卷卷的小趴菜学编程1 小时前
Linux系统之----基础IO
linux·运维·服务器·文件·fopen·文件操作符·位图传递标志位