一、my-mind介绍

  • MyMind 是一个在线思维导图编辑器。

二、本地环境介绍

2.1 本地环境规划

2.2 本次实践介绍

三、检查本地环境

3.1 检查本地操作系统版本

[root@jeven ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

3.2 检查系统内核版本

[root@jeven ~]# uname -r
3.10.0-957.el7.x86_64

3.3 检查端口占用情况

  • 例:检查80端口
[root@jeven ~]# ss -tunlp |grep 80
udp    UNCONN     0      0      fe80::8a83:7297:7cb8:9934%ens33:546                  :::*                   users:(("dhclient",pid=119624,fd=5))
tcp    LISTEN     0      128    127.0.0.1:3880                  *:*                   users:(("fastgithub",pid=8948,fd=131))
tcp    LISTEN     0      128       *:6000                  *:*                   users:(("X",pid=10807,fd=6))
tcp    LISTEN     0      128     ::1:3880                 :::*                   users:(("fastgithub",pid=8948,fd=132))
tcp    LISTEN     0      128      :::6000                 :::*                   users:(("X",pid=10807,fd=5))

四、安装httpd

4.1 检查本地yum仓库

  • 配置阿里云的yum仓库镜像源
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
  • 检查yum仓库状态
[root@jeven tmp]# yum repolist all |grep enable
!base/7/x86_64                               CentOS-7 - Base - m enabled: 10,072
!extras/7/x86_64                             CentOS-7 - Extras - enabled:    518
!mysql-connectors-community/x86_64           MySQL Connectors Co enabled:    227
!mysql-tools-community/x86_64                MySQL Tools Communi enabled:    100
!mysql80-community/x86_64                    MySQL 8.0 Community enabled:    425
!updates/7/x86_64                            CentOS-7 - Updates  enabled:  5,061

4.2 安装httpd

yum install httpd -y

Linux系统之安装my-mind思维导图工具-LMLPHP

4.3 关闭防火墙和selinux

  • 关闭防火墙或放行相关监听端口
systemctl disable firewalld && systemctl stop  firewalld
  • 关闭selinux
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

4.4 创建网站目录

 mkdir /var/www/myweb

4.5 编辑httpd文件

 vim mind.conf
Listen 7899
<VirtualHost *:7899>
ServerName web2.mind.com
DocumentRoot /var/www/myweb
</VirtualHost>

4.6 启动httpd服务

  • 启动httpd服务
 systemctl enable --now httpd
  • 重启httpd服务
systemctl restart httpd
  • 查看httpd服务状态
[root@jeven conf.d]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2023-08-18 18:17:16 CST; 15s ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 130731 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
    Tasks: 6
   Memory: 2.9M
   CGroup: /system.slice/httpd.service
           ├─130731 /usr/sbin/httpd -DFOREGROUND
           ├─130734 /usr/sbin/httpd -DFOREGROUND
           ├─130735 /usr/sbin/httpd -DFOREGROUND
           ├─130736 /usr/sbin/httpd -DFOREGROUND
           ├─130737 /usr/sbin/httpd -DFOREGROUND
           └─130738 /usr/sbin/httpd -DFOREGROUND

Aug 18 18:17:16 jeven systemd[1]: Starting The Apache HTTP Server...
Aug 18 18:17:16 jeven systemd[1]: Started The Apache HTTP Server.

五、下载my-mind软件包

5.1 下载my-mind

 git clone https://github.com/ondras/my-mind.git

5.2 重启httpd服务

systemctl restart httpd

5.3 查看监听端口

[root@jeven myweb]# ss -tunlp |grep 7899
tcp    LISTEN     0      128      :::7899                 :::*                   users:(("httpd",pid=130875,fd=6),("httpd",pid=130874,fd=6),("httpd",pid=130873,fd=6),("httpd",pid=130872,fd=6),("httpd",pid=130871,fd=6),("httpd",pid=130868,fd=6))

六、访问my-mind服务

Linux系统之安装my-mind思维导图工具-LMLPHP

08-18 20:41