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

相关推荐
bitbrowser8 小时前
giffgaff突然停用?先分清闲置停用和长期境外断开
笔记
ltl8 小时前
存储性能建模:IOPS、吞吐与延迟
linux
九硕智慧建筑一体化厂家8 小时前
数字化管控落地,直流照明构筑安全照明体系
运维·人工智能·笔记·安全·智慧城市
AI云海8 小时前
天幕红尘笔记
笔记
刘某的Cloud9 小时前
ceph osd 导入导出 rbd volume 卷
linux·运维·ceph·volume
青山是哪个青山11 小时前
LangChain 学习笔记(三):LangSmith 调试与监控
笔记·学习·langchain
酸菜。11 小时前
dw_axi_dmac总结
linux
神奇霸王龙12 小时前
Agent 准入门控屠夫:5 旗舰 4 维度评估
linux·运维·数据库·ai·ai作画·agent·ai编程
蒸蒸yyyyzwd13 小时前
cpp选手备战后端学习笔记day6 秋招笔试题
笔记·学习
小绫网络安全14 小时前
Kali Linux渗透测试入门教程:从零搭建到实战攻防
linux·运维·服务器