ANSYS 有限元分析 后处理 结点解与单元解-命令流对应的GUI操作

本文是对这篇文章中的命令流寻找其对应的GUI操作(如果有):

ANSYS 有限元分析 后处理 结点解与单元解-CSDN博客

下面这个对应的GUI操作为在官方帮助文档Ansys_Mechanical_APDL_Command_Reference_2中查到的,对应的版本是2022R2,但很多命令在GUI中找不到。

这两个命令可以查看当前的状态

*STATUS,Par,IMIN,IMAX,JMIN,JMAX,KMIN,KMAX,LMIN,LMAX,MMIN,MMAX,
KPRI

列出当前参数和缩略语

Utility Menu>List>Other>Named Parameter
Utility Menu>List>Other>Parameters
Utility Menu>List>Status>Parameters>All Parameters
Utility Menu>List>Status>Parameters>Named Parameters

/STATUS,Lab

列出运行项的状态,包括当前的单位制等。

Utility Menu>List>Status>Global Status

Finish                    !退出当前处理器

Main Menu>Finish

/Clear,all                !清除所有

Utility Menu>File>Clear & Start New

/UNITS, USER, MM

该命令不能从菜单中访问。

Preprocessor>Material Props>Material Library>Select Units

/Prep7                    !访问前处理器

Main Menu>Preprocessor

BLOCK,X1,X2,Y1,Y2,Z1,Z2

Block,0,60,-5,5,-3,3    !创建六面体

基于工作平面坐标创建块体。

Main Menu>Preprocessor>Modeling>Create>Volumes>Block>By Dimensions

/VIEW,WN,XV,YV,ZV

/View,,1,1,1            !设置视图

定义显示的观看方向。

WN:命令应用的窗口号(或全部)(默认为1)。

沿着从点XV,YV,ZV(在全局坐标系中)到全局坐标系原点的直线观察对象。对于切片显示,假定切割平面垂直于这条线。如果XV = WP,修改视图,使其垂直于当前定义的工作平面。默认为(0,0,1)。

Main Menu>General Postproc>Path Operations>Define Path>On Working Plane
Main Menu>Preprocessor>Path Operations>Define Path>On Working Plane
Utility Menu>PlotCtrls>Pan, Zoom, Rotate

VPLOT,NV1,NV2,NINC,DEGEN,SCALE

Vplot                    !Plot volumes

显示选中的物体。

Main Menu>Preprocessor>Modeling>Check Geom>Show Degeneracy>Plot Degen Volus
Main Menu>Preprocessor>Modeling>Operate>Booleans>Show Degeneracy>Plot Degen Volus
Utility Menu>Plot>Specified Entities>Volumes
Utility Menu>Plot>Volumes

!定义属性
ET, 1, SOLID185            !定义单元类型

Main Menu>Preprocessor>Element Type>Add/Edit/Delete


MP, EX, 1, 2E11            !定义弹性模量
MP, NUXY, 1, 0.3        !定义泊松比

Main Menu>Preprocessor>Loads>Load Step Opts>Other>Change Mat Props>Material Models
Main Menu>Preprocessor>Material Props>Material Models
Main Menu>Solution>Load Step Opts>Other>Change Mat Props>Material Models

!网格划分
TYPE, 1                               ! 激活单元类型号1

Main Menu>Preprocessor>Meshing>Mesh Attributes>Default Attribs
Main Menu>Preprocessor>Modeling>Create>Elements>Elem Attributes
Main Menu>Preprocessor>Modeling>Operate>Extrude>Elem Ext Opts


MAT, 1                                ! 激活材料号1、将此材质编号分配给随后定义的元素(默认为1)。

Main Menu>Preprocessor>Meshing>Mesh Attributes>Default Attribs
Main Menu>Preprocessor>Modeling>Create>Elements>Elem Attributes


ESIZE, 3                              ! 单元尺寸设置为3

Main Menu>Preprocessor>Meshing>Size Cntrls>ManualSize>Global>Size
Main Menu>Preprocessor>Meshing>Size Cntrls>SmartSize>Adv Opts


VMESH, ALL                            ! 执行分网

Main Menu>Preprocessor>Meshing>Mesh>Volumes>Free
Main Menu>Preprocessor>Meshing>Mesh>Volumes>Mapped>4 to 6 sided


EPLOT                                 ! Plot Elements

Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Utility Menu>Plot>Elements


FINISH                                ! 退出当前处理器

!设置边界条件
/SOLU                                 ! 访问求解器

Main Menu>Solution


NSEL, S, LOC, X, 0                    ! 选择x坐标值为0的全部结点

Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Main Menu>Preprocessor>Modeling>Delete>Pre-tens Elemnts
Utility Menu>Select>Entities


D, ALL, ALL, 0                        ! 指定边界条件为固定约束

Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>PerfEC>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>TimeInt>J-Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>TimeInt>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>Voltage>J-Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>Voltage>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>EdgeMVP>Flux
Par'l>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>ScalarPot>Flux
Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>ScalarPot>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>VectorPot>Flux
Par'l>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>VectorPot>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Displacement>On Node
Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Displacement>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>BasePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>MultiPtBas>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Thermal>Temperature>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Delete>Structural>Spectrum>BasePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Delete>Structural>Spectrum>MultiPtBas>On
Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>PerfEC>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>TimeInt>J-Normal>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>TimeInt>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>Voltage>J-Normal>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>Voltage>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Boundary>EdgeMVP>Flux Par'l>On
Nodes


ALLSEL,ALL                            ! 全选

Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Utility Menu>Select>Everything
Utility Menu>Select>Everything Below>Selected Areas
Utility Menu>Select>Everything Below>Selected Elements
Utility Menu>Select>Everything Below>Selected Keypoints
Utility Menu>Select>Everything Below>Selected Lines
Utility Menu>Select>Everything Below>Selected Volumes

有很多命令在GUI中找不到

!施加均布载荷
NSEL, S, LOC, Y, 5                    ! 选择y坐标值为5的全部结点


SF, ALL, PRES, 1                      ! 施加均布荷载

Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>AppImped_E>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>AppShield>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppSurfChar>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Flag>AppInfinite>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Flag>AppMaxwell>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Field Surface Intr>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Fluid/ANSYS>Field Surface>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Fluid/ANSYS>Impedance>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Flag>AppInfinite>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppMaxwell>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Pressure>On Node Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Pressure>On Nodes

!施加集中载荷
N1 = NODE(60,-5,-3)                   ! 获取坐标值为(60,-5,-3)的结点编号
N2 = NODE(60,-5,3)                    ! 获取坐标值为(60,-5,3)的结点编号

Main Menu>Preprocessor>Modeling>Create>Nodes>In Active CS
Main Menu>Preprocessor>Modeling>Create>Nodes>On Working Plane


F, N1, FY, -50                        ! 施加集中荷载
F, N2, FY, -50                        ! 施加集中荷载

Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppCharge>On Nodes

Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppCurrent>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>ImprCurr>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppCurrSeg>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppMagFlux>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Force/Moment>On Node
Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Force/Moment>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>MultiPtNod>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>NodePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>SinglPtFor>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Thermal>Heat Flow>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>AppCharge>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>AppCurrent>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>ImprCurr>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Other>AppCurrSeg>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Other>AppMagFlux>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Force/Moment>On Node Components
Main Menu>Solution>Define Loads>Apply>Structural>Force/Moment>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>MultiPtNod>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>NodePSD>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>SinglPtFor>On Nodes
Main Menu>Solution>Define Loads>Apply>Thermal>Heat Flow>On Nodes


ALLSEL,ALL                            ! 全选
EPLOT                                 ! Plot Elements

!求解
ANTYPE,STATIC                         ! 设置分析类型为静力分析

Utility Menu>List>Status>Solution>Analysis Type


SOLVE                                 ! 提交求解器进行求解

Main Menu>Solution>Solve>Current LS

FINISH                                ! 退出当前处理器

!后处理
/POST1                                ! 访问POST1后处理器

Main Menu>General Postproc


/VIEW,, 0, 0, 1                       ! 设置视图

PLDISP, 2                             ! 显示结构变形形状且重叠显示结构变形前后的形状。

Main Menu>General Postproc>Plot Results>Deformed Shape
Utility Menu>Plot>Results>Deformed Shape
Utility Menu>PlotCtrls>Animate>Deformed Shape

ANDSCL                                ! 生成变形形状的动画

Utility Menu>PlotCtrls>Animate>Deformed Shape

!显示位移云图
/POST1                                ! 访问POST1后处理器
/VIEW,, 0, 0, 1                       ! 设置视图
!PLNSOL 为用等值线或云图的方式显示结点处的计算结果;PLESOL 为用等值线或云图的方式显示单元的计算结果。
PLNSOL, U, Y,                         ! 绘制y方向位移云图

Main Menu>General Postproc>Plot Results>Contour Plot>Nodal Solu
Utility Menu>Plot>Results>Contour Plot>Nodal Solution
Utility Menu>PlotCtrls>Animate>Animate Over Results
Utility Menu>PlotCtrls>Animate>Animate Over Time
Utility Menu>PlotCtrls>Animate>Deformed Results
Utility Menu>PlotCtrls>Animate>Dynamic Results
Utility Menu>PlotCtrls>Animate>Isosurfaces
Utility Menu>PlotCtrls>Animate>Mode Shape
Utility Menu>PlotCtrls>Animate>Q-Slice Contours
Utility Menu>PlotCtrls>Animate>Time-harmonic

PLESOL,Item,Comp,KUND,Fact,AVG

Main Menu>General Postproc>Plot Results>Contour Plot>Element Solu
Utility Menu>Plot>Results>Contour Plot>Elem Solution


/EDGE,1,0                             ! 仅显示边缘轮廓(对于等值线显示)

Utility Menu>PlotCtrls>Style>Edge Options

!显示连续应力云图
/POST1                                ! 访问POST1后处理器
/VIEW,, 0, 0, 1                       ! 设置视图
PLNSOL, S, X                          ! 绘制x方向连续正应力云图
/EDGE,1,1                             ! 显示所有单元面之间的公共线(对于等值线显示)
/REPLOT                               ! Replot

Main Menu>General Postproc>Path Operations>Define Path>On Working Plane
Main Menu>General Postproc>Path Operations>Delete Path>All Paths
Main Menu>General Postproc>Path Operations>Delete Path>By Name
Main Menu>General Postproc>Path Operations>Plot Paths
Main Menu>Preprocessor>Modeling>Create>Circuit>Scale Icon
Main Menu>Preprocessor>Path Operations>Define Path>On Working Plane
Main Menu>Preprocessor>Path Operations>Delete Path>All Paths
Main Menu>Preprocessor>Path Operations>Delete Path>By Name
Main Menu>Preprocessor>Path Operations>Plot Paths
Utility Menu>Plot>Replot
Utility Menu>PlotCtrls>Style>Symmetry Expansion>Expansion by values


!PLESOL 命令绘制的云图的等应力线 (contour lines) 呈锯齿状,PLNSOL 命令绘制的云图的等应力线平滑连续。

!显示非连续应力云图
/POST1                                ! 访问POST1后处理器
/VIEW,, 0, 0, 1                       ! 设置视图
PLESOL, S, X                          ! 绘制x方向非连续正应力云图
/EDGE,1,1                             ! 显示所有单元面之间的公共线(对于等值线显示)
/REPLOT                               ! Replot

!提取结点应力/单元结点应力
ESEL,S, , ,141                        ! 选择141号单元
ESEL,A, , ,142                        ! 选择142号单元

Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Main Menu>Preprocessor>Modeling>Create>Circuit>Delete Elements
Main Menu>Preprocessor>Modeling>Delete>Pre-tens Elemnts
Utility Menu>Select>Entities


/PNUM,NODE,1                          ! 显示结点编号

Utility Menu>PlotCtrls>Numbering


/REPLOT                               ! Replot

/GRAPHICS,POWER                       ! 开启 PowerGraphics Display、定义图形显示的类型。

Utility Menu>PlotCtrls>Style>Hidden-Line Options


/EFACET,2                             ! 对于二阶单元,输出中间结点信息。指定PowerGraphics显示的每个元素边缘的切面数。

Main Menu>General Postproc>Options for Outp
Main Menu>General Postproc>Plot Results>Contour Plot>Nodal Solu
Utility Menu>List>Results>Options
Utility Menu>Plot>Results>Contour Plot>Nodal Solution
Utility Menu>PlotCtrls>Multi-Plot Contrls
Utility Menu>PlotCtrls>Style>Size and Shape


! /EFACET,1                           ! 对于二阶单元,不输出中间结点信息。


/REPLOT                               ! Replot

PRNSOL,S,COMP                         ! 列出结点上的应力结果,六个分量全部列出。

!PRESOL,S,COMP                         ! 列出单元上的应力数据,六个分量全部列出。

这篇也挺有用的:

ANSYS经典界面GUI菜单全攻略 (qq.com)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/224071.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

20231215给AIO-3399J适配Rockchip的原始Andoroid10的挖掘机开发板02

20231215给AIO-3399J适配Rockchip的原始Andoroid10的挖掘机开发板02 2023/12/15 15:37 【请严重注意:】如果刷不适配的SDK,可能会引起您的开发板【硬件发生物理】损坏! 如果您按照本步骤刷机引起的一切后果,请自行承担责任&#x…

Day09 Liunx高级系统设计11-数据库1

MySQL 简介 数据库DB 数据库( DataBase , DB )从本质上讲就是一个文件系统,它能够将数据有组织地集合在一起,按照一定的规则长期存储到计算机的磁盘中,并且能够供多个用户共享和使用,同时&…

Linux篇:信号

一、信号的概念: ①进程必须识别能够处理信号,信号没有产生,也要具备处理信号的能力---信号的处理能力属于进程内置功能的一部分 ②进程即便是没有收到信号,也能知道哪些信号该怎么处理。 ③当进程真的受到了一个具体的信号的时候…

网络安全之计算机网络基础知识<二>

目录 一.IP与端口二.HTTP协议分析 一.IP与端口 IP地址:指互联网协议地址。是IP协议提供的地址格式,为互联网上的每一个网络和每一个主机分配一个逻辑地址,以此来屏蔽物理地址的差异。 简单来说,IP地址是电子设备(计算…

猫粮哪个牌子质量好性价比高?分享十款主食冻干猫粮品牌排行榜!

一款好的、健康的主粮对猫整体有很大的提升,主食作为猫的日常饮食,直接关乎着小猫是否能摄入充分的营养,达到最佳的理想状态,因此对于每一位铲屎官来说,主食选得好不好至关重要。面对种类众多的主食,很多人…

c/c++ 结构体、联合体、枚举

结构体 结构体内存对齐规则: 1、结构体的第一个成员对齐到结构体变量起始位置偏移量为0的地址处 2、其他成员变量要对齐到某个数字(对齐数)的整数倍的地址处。 对齐数:编译器默认的一个对齐数与该成员变量大小的较小值。 vs 中…

chaosblade混沌测试

chaosblade安装部署 https://alden.blog.csdn.net/article/details/129941689 https://github.com/chaosblade-io/chaosblade/tags安装部署 [rootvm ~]# wget https://github.com/chaosblade-io/chaosblade/releases/download/v1.3.0/chaosblade-1.3.0-linux-amd64.tar.gz[ro…

编程实际应用实例:洗车店会员管理系统操作教程

一、前言 洗车店在会员管理有时候需要一卡多用,基本也不需要做卡,直接报手机号或车牌号即可完成电子会员卡录入。 下面以 佳易王洗车店会员管理系统软件为例说明, 软件试用版下载或技术支持可以点击下方的官网卡片 如图:这个卡…

【教程】Autojs脚本实现暂停和超时重启功能的思路和示例代码

转载请注明出处:小锋学长生活大爆炸[xfxuezhang.cn] 背景介绍 autojs本身不支持暂停脚本,现有网上大部分最直接的做法就是在每条语句后面添加检查是否暂停。当脚本功能和代码量非常打的时候,每一条语句后面都加检测,未免不太现实。…

如何一次性scp多个文件到远程机器上

如题,如果想要使用 scp 一次性复制多个文件到远程机器上,可以用以下命令实现,格式如下: $ scp -P port local_file1 local_file2 ... usernameremote_host:remote_path其中: port 是远程主机的指定端口号&#xff0c…

Nginx-nginx 反向代理方式(超详细)

当涉及到提高网站的性能和可用性时,负载均衡和反向代理是非常关键的组件。Nginx是一款高性能的Web服务器和反向代理服务器,它提供了强大的负载均衡功能。下面是关于如何使用Nginx实现反向代理的一些基本步骤: 1.什么是反向代理?&…

Uniapp小程序通过camera组件实现视频拍摄

uni中可以通过调用api的方式去拍摄或者是选择相册的视频&#xff0c;但是在这里我们不采取这种方式&#xff0c;因为调用api的方式&#xff0c;必须跳转&#xff0c;而我们需要在页面中实现&#xff0c;下面看下具体步骤吧... <camera v-if"!srcUrl && showCam…

TypeScript 使用泛型 接收后端的统一返回对象

后端往往在返回数据的时候都会有一个固定的格式&#xff0c;来搭配前端的数据接收工作。 比如&#xff1a; // 返回格式 一 {code:200,message:success,data:{name:勿语,age:18} } // 返回格式 二 {code:200,message:success,data:dawkn23n1io2nkfdawbdkbwfa }从返回结果来看…

RFID技术在物流仓储解决方案中的应用

行业现状 当前市场竞争日益激烈&#xff0c;提高生产效率、降低运营成本对企业至关重要。仓库和物流管理在各行业中广泛应用。建立完善的仓库管理流程&#xff0c;提高仓库周转率&#xff0c;减少资金占用&#xff0c;实现资产变现&#xff0c;降低仓库淘汰成本&#xff0c;是…

c++面经总结

C基础语法 C和c的区别 c中new和delete是对内存分配的运算符&#xff0c;取代了c中的malloc和free 标准c中的字符串类取代了标准c函数库头文件中的字符数组处理函数(c中没有字符串类型). 在c中&#xff0c;允许有相同的函数名&#xff0c;不过他们的参数类型不能完全相同&…

【状态机FSM 序列检测 饮料机_2023.12.1】

同步状态机 概念 同步状态机&#xff08;同一脉冲边沿触发&#xff09;&#xff1a;有限个离散状态及某状之间的转移 异步状态机无法综合 分类 Moore状态机 只和状态有关&#xff0c;与输入无关 Mealy状态机 和状态和输入都有关 Mealy型比Moore型少一个状态 结构 由状态寄…

Tomcat从认识安装到详细使用

文章目录 一.什么是Tomact?二.Tomcat的安装1.下载安装包2.一键下载3.打开Tomcat进行测试4.解决Tomcat中文服务器乱码 三.Tomcat基本使用1.启动与关闭Tomcat2.Tomcat部署项目与浏览器访问项目 四.Tomcat操作中的常见问题1.启动Tomcat后&#xff0c;启动窗口一闪而过&#xff1f…

排序 | 冒泡插入希尔选择堆快排归并计数排序

排序 | 冒泡插入希尔选择堆快排归并计数排序 文章目录 排序 | 冒泡插入希尔选择堆快排归并计数排序冒泡排序插入排序希尔排序选择排序堆排序快速排序--交换排序三数取中快速排序hoare版本快速排序挖坑法快速排序前后指针法 快速排序--非递归实现归并排序归并排序非递归实现非比…

【AutoDL】使用云服务器跑深度学习代码

一、AutoDL租用服务器 1.选用服务器 1.算力市场 租用服务器&#xff0c;选择自己心仪的服务器 2.镜像 可以选择一些基础的镜像&#xff0c;社区镜像里是git上有的环境。 3.上传文件 在文件存储中&#xff0c;选择上传的区&#xff0c;在右边点击上传&#xff0c;选择自己的文…

Dockerfile创建镜像LNMP+WordPress

目录 实验部署 nginx 配置mysql 配置php 实验部署 INMPwordpress nginx 172.111.0.10 docker-nginx mysql 172.111.0.20 docker-mysql php 172.111.0.30 docker-php nginx 关闭防火墙和安全机制在opt目录创建nginx MySQL php目录 cd nginx mysql php vim Dockerfile#声…