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

相关推荐
皆过客,揽星河1 小时前
Linux上安装MySQL8详细教程
android·linux·hadoop·mysql·linux安装mysql·数据库安装·详细教程
二进制怪兽1 小时前
[笔记] 系统分析师 第八章 软件工程
笔记
青草地溪水旁1 小时前
Unix/Linux 系统中的 `writev` 系统调用
linux·unix·writev
Justin_191 小时前
Linux-Shell编程之sed和awk
linux·运维·服务器
Akshsjsjenjd2 小时前
深入理解 Shell 循环与函数:语法、示例及综合应用
linux·运维·自动化·shell
塔中妖2 小时前
【华为OD】Linux发行版的数量
linux·算法·华为od
yangzhi_emo2 小时前
ES6笔记4
前端·笔记·es6
半桔2 小时前
【Linux手册】消息队列从原理到模式:底层逻辑、接口实战与责任链模式的设计艺术
java·linux·运维·服务器
华纳云IDC服务商3 小时前
Linux服务器的系统安全强化超详细教程
linux·服务器·系统安全
衍余未了3 小时前
k8s镜像推送到阿里云,使用ctr推送镜像到阿里云
linux·运维·服务器