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

相关推荐
The_Second_Coming10 分钟前
Python 学习笔记:基础篇
运维·笔记·python·学习
网硕互联的小客服18 分钟前
如何解决 Linux 文件系统挂载失败的问题?
linux·服务器·前端·网络·chrome
思成不止于此18 分钟前
软考中级软件设计师备考指南(二):计算机体系结构与指令系统
笔记·学习·软件设计师
大聪明-PLUS6 小时前
如何使用 Docker 打包一个简单的应用程序:简易指南
linux·嵌入式·arm·smarc
serve the people7 小时前
Prompts for Chat Models in LangChain
java·linux·langchain
李昊哲小课8 小时前
Ubuntu 24.04 MariaDB 完整安装与配置文档
linux·ubuntu·mariadb
潇冉沐晴9 小时前
div2 1052 个人补题笔记
笔记
人间打气筒(Ada)9 小时前
zerotier内网穿透部署(rockylinux部署本地服务器)超详细~~~
linux·内网穿透·内网·公网·zerotier·穿透
蒙奇D索大10 小时前
【计算机网络】[特殊字符] 408高频考点 | 数据链路层组帧:从字符计数到违规编码,一文学透四大实现方法
网络·笔记·学习·计算机网络·考研