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

相关推荐
一位摩羯座DBA36 分钟前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组36 分钟前
CentOS配置网络
linux·网络·centos
weixin_307779131 小时前
Hive集群之间迁移的Linux Shell脚本
大数据·linux·hive·bash·迁移学习
漫步企鹅2 小时前
【蓝牙】Linux Qt4查看已经配对的蓝牙信息
linux·qt·蓝牙·配对
cui_win2 小时前
【网络】Linux 内核优化实战 - net.core.flow_limit_table_len
linux·运维·网络
梦在深巷、2 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
冰橙子id2 小时前
linux系统安全
linux·安全·系统安全
stark张宇3 小时前
VMware 虚拟机装 Linux Centos 7.9 保姆级教程(附资源包)
linux·后端
Johny_Zhao3 小时前
Ubuntu系统安装部署Pandawiki智能知识库
linux·mysql·网络安全·信息安全·云计算·shell·yum源·系统运维·itsm·pandawiki
悲伤小伞3 小时前
linux_git的使用
linux·c语言·c++·git