cheng029 发表于 2015-7-9 13:54:39

部署PaaS应用(Part2)SugarCRM & Dolibarr ERP

部署PaaS应用(Part2)SugarCRM & Dolibarr ERP1、       部署SugarCRM应用2、       部署PaaS应用(Part2)SugarCRM & Dolibarr ERP,这两个PaaS应用都是基于Openshift的PHP+MySQL+phpMyAdmin套件搭建的。 SugarCRM,是一款客户关系管理系统(CRM)。 (1)在Openshift应用标签创建新应用,点击PHP 5.3。                               (2)在公共URL处输入sugarcrm,点击Create Application。 (3)点击查看应用程序。 (4)点击Add MySQL 5.1,添加MySQL应用套件。 (5)点击添加套件。 (6)点击Add phpMyAdmin 4.0,添加phpMyAdmin套件。 (7)点击添加套件。以下为添加完成的套件。 (8)切换到设置标签,点击增加新的公钥。 (9)在Node节点,查看产生的RSA公钥。# cd /root/.ssh# cat id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs3WBUIFef4FtbWSEQVCoeUUiUsIFYB+YgXidW2MajYqlYvjCqtLJcLg2dZFjKwJ0JgoLbaJhi+3V0EtsVCyXK/pAyn56QkxZia/BzgSp0n3kNVxZ5KkLWnZ/xkMXaQH7CYk0e++4FgxUEviPv34hs58dXvR7IKbSSc2WDsJEpX78a82HnNiLoKtAs+h5im1aF25o6vzaqLHPzZkht4xcR/7oP5YNr9wwaVFmaqr0hyfgzZMwvQqJlX2Bx1GhHCTqQHKqshW+Ia1cGzGnVGNmI0bybP1pKRQTGwUS1yKTzgB7UxGYHZn3lN5I2aVUbFYccHD83qNa92Qhu/DTVO/2jw==root@node (10)将Node节点的RSA公钥粘贴到这里。 (11)以下为导入到Openshift的Node节点的公钥。 (12)点击应用标签的sugarcrm。 (13)复制右侧的Source Code。 (14)在Node节点,git clone来自Openshift的源文件。# cd# mkdir sourcegit # cd sourcegit/ # git clonessh://5562d91e13db8c6728000001@sugarcrm-sdcet.example.com/~/git/sugarcrm.git/Initialized empty Git repository in /root/sourcegit/sugarcrm/.git/The authenticity of host'sugarcrm-sdcet.example.com (192.168.200.102)' can't be established.RSA key fingerprint is90:b6:9e:d0:3e:76:27:ce:34:3b:d6:b4:41:5d:e7:31.Are you sure you want to continueconnecting (yes/no)? yesWarning: Permanently added'sugarcrm-sdcet.example.com,192.168.200.102' (RSA) to the list of known hosts.remote: Counting objects: 20, done.remote: Compressing objects: 100% (15/15),done.remote: Total 20 (delta 0), reused 20(delta 0)Receiving objects: 100% (20/20), 18.23 KiB,done. # lssugarcrm (15)将sugarcrm-example-master.zip解压到Node节点的/root/mygit目录。# cd# mkdir mygit 使用SFTP将PaaS v1.2光盘paas-xiandian目录中的sugarcrm-example-master.zip传到Node节点的/root/mygit目录。 # cd mygit/# unzipsugarcrm-example-master.zip # lssugarcrm-example-mastersugarcrm-example-master.zip (16)拷贝解压后的文件替换原有的git clone源文件# cd/root/sourcegit/sugarcrm# lsdeplist.txt libsmiscphp README.md # cp -Rf/root/mygit/sugarcrm-example-master/* .cp: overwrite `./libs/.gitkeep'? ycp: overwrite `./misc/.gitkeep'? ycp: overwrite `./php/index.php'? y # lsdeplist.txt libsmiscphp READMEREADME.md (17)使用git上传源文件# git add . # git commit -am"my changes" # git pushCounting objects: 7625, done.Compressing objects: 100% (7272/7272),done.Writing objects: 100% (7621/7621), 14.20MiB | 5.33 MiB/s, done.Total 7621 (delta 2847), reused 0 (delta 0)remote: Stopping PHP cartridgeremote: PassEnv variable SHELL was undefinedremote: PassEnv variable USER was undefinedremote: PassEnv variable LOGNAME was undefinedremote: Waiting for stop to finishremote: Stopping MySQL cartridgeremote: Stopping PHPMyAdmin cartridgeremote: PassEnv variable SHELL was undefinedremote: PassEnv variable USER was undefinedremote: PassEnv variable LOGNAME was undefinedremote: Waiting for stop to finishremote: Building git ref 'master', commitb67344fremote: Building PHP cartridgeremote: Preparing build for deploymentremote: Deployment id is fa9b88deremote: Activating deploymentremote: Starting MySQL cartridgeremote: Starting PHPMyAdmin cartridgeremote: Starting PHP cartridgeremote: Result: successremote: Activation status: successremote: Deployment completed with status:successTossh://5562d91e13db8c6728000001@sugarcrm-sdcet.example.com/~/git/sugarcrm.git/bfd6503..b67344fmaster ->master (18)访问sugarcrm-sdcet.example.com。 (19)正在安装Sugar。 (20)记录安装信息,点击Finish。 (21)登录用户名和密码都是admin。 (22)点击Skip。 (23)输入管理员邮箱地址。 (24)设置时区为Asia/Shanghai。 (25)点击Finish完成配置SugarCRM。 (26)以下为SugarCRM的主界面。 2、部署Dolibarr ERP应用 Dolibarr ERP,是一款企业资源计划系统(ERP)。 (1)在Openshift应用标签创建新应用,点击PHP 5.3。 (2)在公共URL处输入dolibarr,点击Create Application。 (3)点击查看应用程序。 (4)点击Add MySQL 5.1,添加MySQL应用套件。 (5)点击添加套件。 (6)点击Add phpMyAdmin 4.0,添加phpMyAdmin套件。 (7)点击添加套件。以下为添加完成的套件。 l记下phpMyAdmin的URL: https://dolibarr-sdcet.example.com/phpmyadmin/l记下用户名admin5cLHJRI,密码xFhxKPXN-6_i。l复制右侧的SourceCode:ssh://55630b8913db8c6728000027@dolibarr-sdcet.example.com/~/git/dolibarr.git/。 (8)在Node节点,git clone源文件# cd /root/sourcegit/# git clone ssh://55630b8913db8c6728000027@dolibarr-sdcet.example.com/~/git/dolibarr.git/Initializedempty Git repository in /root/sourcegit/dolibarr/.git/Theauthenticity of host 'dolibarr-sdcet.example.com (192.168.200.102)' can't beestablished.RSA keyfingerprint is 90:b6:9e:d0:3e:76:27:ce:34:3b:d6:b4:41:5d:e7:31.Are yousure you want to continue connecting (yes/no)? yesWarning:Permanently added 'dolibarr-sdcet.example.com' (RSA) to the list of knownhosts.remote:Counting objects: 20, done.remote:Compressing objects: 100% (15/15), done.remote:Total 20 (delta 0), reused 20 (delta 0)Receivingobjects: 100% (20/20), 18.23 KiB, done.# lsdolibarrsugarcrm (9)在Node节点,修改git源文件# cd /root/sourcegit/dolibarr/php/ # vi index.php 修改为以下内容:# cat index.php <?phpheader("Location:dolibarr/htdocs");?> (10)将dolibarr-3.6.2.zip解压到Node节点的/root/mygit目录。使用SFTP将PaaS v1.2光盘paas-xiandian目录中的dolibarr-3.6.2.zip传到Node节点的/root/mygit目录。 # cd /root/mygit/ # unzip dolibarr-3.6.2.zip # lsdolibarr-3.6.2dolibarr-3.6.2.zipsugarcrm-example-mastersugarcrm-example-master.zip (11)修改源文件# cp -Rf /root/mygit/dolibarr-3.6.2/ /root/sourcegit/dolibarr/php/dolibarr # cd /root/sourcegit/dolibarr/php/# lsdolibarrhealth_check.phpindex.php 进入dolibarr目录创建index.php文件# cd dolibarr/# vi index.php <?phpheader("Location:htdocs");?> (12)提交更改# git add . # git commit -am "my changes" # git pushCountingobjects: 6296, done.Compressingobjects: 100% (6133/6133), done.Writingobjects: 100% (6293/6293), 21.23 MiB | 4.93 MiB/s, done.Total6293 (delta 1230), reused 0 (delta 0)remote:Stopping PHP cartridgeremote: PassEnv variable SHELL was undefinedremote: PassEnv variable USER was undefinedremote: PassEnv variable LOGNAME was undefinedremote:Waiting for stop to finishremote:Stopping MySQL cartridgeremote:Stopping PHPMyAdmin cartridgeremote: PassEnv variable SHELL was undefinedremote: PassEnv variable USER was undefinedremote: PassEnv variable LOGNAME was undefinedremote:Waiting for stop to finishremote:Building git ref 'master', commit 047a593remote:Building PHP cartridgeremote:Preparing build for deploymentremote:Deployment id is a2ba1a93remote:Activating deploymentremote:Starting MySQL cartridgeremote:Starting PHPMyAdmin cartridgeremote:Starting PHP cartridgeremote:Result: successremote:Activation status: successremote:Deployment completed with status: successTossh://55630b8913db8c6728000027@dolibarr-sdcet.example.com/~/git/dolibarr.git/   d91dc6f..047a593master -> master (13)在新标签页打开dolibarr-sdcet.example.com。 (14)选择安装语言。 (15)点击开始。 (16)在新的标签页打开phpMyAdmin的网址https://dolibarr-sdcet.example.com/phpmyadmin/,输入之前记下来的用户名admin5cLHJRI,密码xFhxKPXN-6_i。 (17)点击“数据库”,新建数据库dolibarr。 (18)以下为创建好的数据库。记下数据库服务器的IP地址和端口:127.1.245.130:3306。 (19)继续安装Dolibarr,服务器处输入127.1.245.130,端口3306,注册输入之前记下来的用户名admin5cLHJRI,密码xFhxKPXN-6_i。 (20)点击下一步。 (21)点击下一步。 (22)创建Dolibarr的管理员用户名和密码。 (23)点击前往Dolibarr。 (24)输入刚创建的管理员用户名和密码,点击连接。 (25)Dolibarr ERP部署完成,以下为管理员主界面。图文详情,请查看附件百度云附件:部署PaaS应用(Part2)SugarCRM & Dolibarr ERP.pdf   

页: [1]
查看完整版本: 部署PaaS应用(Part2)SugarCRM & Dolibarr ERP