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

相关推荐
FoldWinCard3 小时前
D5 Linux 网络及端口命令
linux·运维·服务器
零涂毕业设计4 小时前
毕业设计模块开发-OLED显示屏(IIC协议0.96寸)STM32 ESP32 FPGA Linux驱动免费分享
linux·stm32·单片机·嵌入式·esp32·fpga·oled
tedcloud1234 小时前
OmniRoute怎么部署?开源AI模型路由平台Linux部署教程
linux·服务器·人工智能·开源·音视频
霸道流氓气质4 小时前
KMS 密钥管理服务(Key Management Service)原理与实践
linux·服务器·数据库
SakitamaX4 小时前
LVS(Linux Virtual Server)概念详解
linux·运维·lvs
小张同学a.5 小时前
Linux系统管理
linux·运维
谙弆悕博士5 小时前
信息系统项目管理师教程(第4版)笔记——第 2 章 信息技术发展
笔记·职场和发展·软考高级·软考·高项·项目经理
阿龙的工作记录5 小时前
深入理解Linux设备驱动模型
linux·嵌入式硬件·工作记录
代码村新手5 小时前
Linux的基本指令
linux·运维·服务器
hkj88086 小时前
Ubuntu 切换java版本
java·linux·ubuntu