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

相关推荐
北京海得康28 分钟前
Atebrioz(zilurgisertib):靶向ALK2通路,FOP超罕见病全新口服治疗方案
笔记
和侧1 小时前
MOS器件——ESD测试
笔记·学习
Apipi*1 小时前
30天速通Linux 第九章Linux网络编程
linux·运维·网络
报错小能手1 小时前
Channel面试题。Sync面试题
linux·服务器·windows
xiaoqiMikko1 小时前
Linux 实战(五):DNS、hosts、CLOSE-WAIT、SSH 权限与改端口 —— 三台真机实测
linux·centos
Linux-lucky1 小时前
43-Linux学习之旅之Shell 脚本(二)
linux·运维·学习·ubuntu·dash
yv798an2 小时前
从 OpenSBI 引导到 C++17 异步运行时:自制 RISC-V 嵌入式专有 NAS 踩坑全记录
linux
Xudde.2 小时前
CVE-2017-9993漏洞复现
笔记·学习·安全·web安全
不悔哥2 小时前
Linux系统编程多线程程序如何安全退出
linux
FakeOccupational2 小时前
【电路笔记 STM32】Cortex-M7 UART 中断模式(串口接收中断+串口空闲中断)
笔记·stm32·单片机