# install-erpnext-script **Repository Path**: zzdx713320/install-erpnext-script ## Basic Information - **Project Name**: install-erpnext-script - **Description**: 吕肖江贡献的ERPNext 一条命令安装脚本 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 34 - **Created**: 2024-07-01 - **Last Updated**: 2024-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # erpnext_install_script #### 介绍 吕消江贡献的基于 ubuntu22.04 带汉化与开箱即用 ERPNext 15版 一条命令安装脚本 #### 使用说明 1. 购买云服务器 - 1.1 购买ECS,弹性云服务器 - 1.2 镜像选ubuntu22.04 - 1.3 购买EIP, 弹性公网IP - 1.4 绑定弹性公网IP与云服务器 - 1.5 购买域名,申请ICP备案(可选,3~5个工作日) 2. 本机安装vscode 环境准备 - 2.1 启动本机vscode - 2.2 Vscode安装Remote - SSH - 2.3 添加连接到弹性服务器的连接配置 - 2.4 SSH连接到弹性服务器, 用root账号登录,或切换到root账号 3. 安装ERPNext - 3.1 下载安装文件并切换到安装目录,也可手工新建一个文件并复制内容 `git clone https://gitee.com/yuzelin/install-erpnext-script.git && cd install-erpnext-script` - 3.2 修改安装文件执行权限 `chmod +x install-erpnext15.sh` - 3.3 ( **可选** )修改安装文件install-erpnext15.sh 开头部分默认安装参数,如安装目录,站点名,frappe/erpnext 代码源(默认为码云镜像站),数据库及管理员密码 ``` mariadbPath="" mariadbPort="3306" mariadbRootPassword="Pass1234" #数据库密码 adminPassword="admin" #管理员密码 installDir="frappe-bench" #安装目录 userName="frappe" #用户 frappePath="https://gitee.com/mirrors/frappe" #frappePath="https://github.com/frappe/frappe" frappeBranch="version-15" #frappe版本 erpnextPath="https://gitee.com/mirrors/erpnext" #erpnextPath="https://github.com/frappe/erpnext" erpnextBranch="version-15" #erpnext版本 siteName="site1.local" #有自己域名的建议改为自己的域名 siteDbPassword="Pass1234" #站点数据库同名帐号密码 ``` - 3.4 运行安装命令 `./install-erpnext15.sh` 输入安装选项2,(也可选其它选项) 因网络问题安装会自动重试,重试次数超过后异常终止,可手动重复执行安装命令,根据提示输入1,覆盖安装即可。