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

root@localhost nginx-1.12.2# ./configure --without-http_gzip_module

root@localhost nginx-1.12.2# make && make install

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#

关闭防火墙root@localhost nginx# systemctl stop firewalld.service

root@localhost nginx# yum -y install mariadb

yum安装的用systemd来起服务

源码安装用绝对路径来起服务

源码安装:

下载对应操作系统的源码,exec,rpm

解压缩

安装对应依赖

./configure

make && make install

安装root@localhost nginx# yum -y install mariadb-server mariadb-devel

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#


修改配置文件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

相关推荐
λqaq73 分钟前
Docker 容器入门基础:Cloud Studio 在线 Linux 环境上手
linux·运维·docker
神明不懂浪漫4 分钟前
【第一章】MySQL简介
数据库·经验分享·笔记·mysql·oracle
en.en..5 分钟前
LVGL 普通函数指针与结构体函数指针原理
linux·windows·microsoft
byte轻骑兵6 分钟前
【BlueZ 】Adapter 模块:蓝牙适配器(主设备)的初始化与核心逻辑
linux·人工智能·bluez·电脑蓝牙·嵌入式蓝牙
流浪00115 分钟前
Linux系统篇27——通信(四):System V 消息队列 + 信号量:管道之后,Linux 还藏了哪两样 IPC
linux·运维
山岚的运维笔记17 分钟前
mysql 专业笔记 -- 第 14 章:GROUP BY
运维·数据库·笔记·后端·学习·mysql·dba
阳光宅男@李光熠23 分钟前
【电子通识】PCB外观检查机AVI(Automated Visual Inspection)
笔记·学习
Java后端的Ai之路35 分钟前
23、Python - 策略模式
linux·python·策略模式
旖旎夜光40 分钟前
【LangChain实战】LangChain 学习笔记(一):从定义大模型到工具调用
人工智能·笔记·python·学习·langchain
深圳雨林凯AI9 小时前
图案裂变的“风格归一化“设计思路:主体保得住,画风才拉得齐|雨林凯AI技术笔记
人工智能·笔记