@TOC
一、my-mind介绍
- MyMind 是一个在线思维导图编辑器。
二、本地环境介绍
2.1 本地环境规划
本次实际为集体测试环境,操作系统版本为centos7.6。
|hostname| 本地P地址 | 操作系统版本 |内核版本 |python版本
|--|--| --| --| --|
| jeven|192.168.3.166 |centos 7.6| 3.10.0-957.el7.x86_64 v16.17.0|3.6.8
2.2 本次实际介绍
1.本次实际部署环境为集体测试环境;
2.在centos7.6环境下装置my-mind思维导图工具。
三、查看本地环境
3.1 查看本地操作系统版本
查看本地操作系统版本
[root@jeven ~]# cat /etc/redhat-releaseCentOS Linux release 7.6.1810 (Core)
3.2 查看零碎内核版本
查看零碎内核版本
[root@jeven ~]# uname -r3.10.0-957.el7.x86_64
3.3 查看端口占用状况
查看默认的80端口,以及my-mind服务的自定义端口7899端口是否被占用。
- 例:查看80端口
[root@jeven ~]# ss -tunlp |grep 80udp 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间接装置httpd服务
yum install httpd -y
4.3 敞开防火墙和selinux
- 敞开防火墙或放行相干监听端口
systemctl disable firewalld && systemctl stop firewalld
- 敞开selinux
setenforce 0sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
4.4 创立网站目录
创立网站目录
mkdir /var/www/myweb
4.5 编辑httpd文件
在/etc/httpd/conf.d/目录下,新建mind.conf文件。编辑如下内容:
vim mind.conf
Listen 7899<VirtualHost *:7899>ServerName web2.mind.comDocumentRoot /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 -DFOREGROUNDAug 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
在网站根目录/var/www/myweb/,下载my-mind
git clone https://github.com/ondras/my-mind.git
5.2 重启httpd服务
重启httpd服务
systemctl restart httpd
5.3 查看监听端口
查看监听端口7899
[root@jeven myweb]# ss -tunlp |grep 7899tcp 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服务
拜访地址:http://192.168.3.166:7899/my-mind/
将IP地址替换为本人服务器的IP地址