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

相关推荐
ShineWinsu12 分钟前
对于Linux:线程概念与分页存储管理的解析
linux·运维·服务器·面试·线程·进程·虚拟空间地址
三品吉他手会点灯14 分钟前
STM32F103 学习笔记-24-I2C-读写EEPROM(第1节)-I2C物理层介绍
笔记·stm32·学习
用户39462353652440 分钟前
Uboot - DM框架
linux
万物更新_1 小时前
vue框架
前端·javascript·vue.js·笔记
上海观智网络2 小时前
上海小程序定制开发合同怎么签?需要注意什么?
经验分享·笔记·小程序
鹤落晴春2 小时前
RH124问答5:管理本地用户和组
linux·运维·服务器
其实防守也摸鱼2 小时前
软件安全与漏洞--Windows底层原理与软件逆向工程基础
linux·网络·数据库·算法·安全·安全架构·软件安全与漏洞
Ab_stupid2 小时前
CTF-Crypto培训笔记-现代密码
笔记·des·aes·rsa·crypto
云栖梦泽2 小时前
Linux内核与驱动:pinctl子系统和GPIO子系统
linux·单片机·嵌入式硬件
IT技术学习2 小时前
打包系统为ISO
笔记