zoukankan      html  css  js  c++  java
  • 2 plan team 服务器搭建

    最近想搞个2-plan team看看,是不是适合小型团队任务管理

    下了个包,解压了,发现里面的readme太简单了
    readme中的install相关的内容如下
    ### Installation instructions ###
    
        1. Unpack the archive.
        2. Upload everything, including the empty /files and /templates_c folders, to your server.
               (Optionally you need to create /templates_c and /files manually before installation.)
            3. Make the following folders & files writable:
                    - /templates_c
                    - /files
                    - /config/standard/config.php
            4. Create a new MySQL database for 2-plan.
            5. Point your browser to install.php and follow the instructions given.
            6. If the installation was successful, delete install.php and update.php. 
    没LAMP基础伤不起啊,求助了万能的google,总算搞定了
     
    下面是具体过程
    1. 安装 lamp的相关系列软件
    sudo apt-get install tassel
    sudo tasksel install lamp-server
    安装过程中会要输入mysql的root密码,这个密码之后管理mysql和创建2-plan的数据库时需要用到
     
    2.上传2-plan-team组件
    mkdir 2-plan-team
    tar xvf 2-plan-team.tgz -C 2-plan-team
    cp -r 2-plan-team /var/www
    #改变目录的权限,使apache能够操作
    sudo chown www-data:www-data /var/www/2-plan-team -R
     
    3.更改apache的配置指向上面的目录
            DocumentRoot /var/www/2-plan-team
    
            <Directory />
                    Options FollowSymLinks
                    AllowOverride None
            </Directory>
            <Directory /var/www/>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>
    改完重启apache服务器
    sudo service apache2 restart
     
    4.添加2-plan使用的用户和数据库
    4.1 创建用户
    sudo service apache2 restart
    输入1中提到的root的密码
    mysql> GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY “password";
    # username既是数据库使用者的用户名,password既是该用户的密码
    mysql>exit
    退出
    4.2 创建数据库
    使用新创建的密码登录
    mysql -u username -p
    输入4.1中的用户密码
    mysql>create database 2plan
    创建了名为2plan的数据库
     
    5. 安装2-plan
    浏览器中输入http://servername/install.php
    servername是你的服务器名字或者ip,本地的服务器就是localhost,这里的话是192.168.1.101
    就会出现如下内容:
    step 1:设定语言和自检
     
    step 2:设定数据库参数
    Database host :mysql服务器的host名字,这边是localhost
    Database name: 前面4.2创建的数据库名字, 2plan
    Database user: 4.1中创建的用户也是创建了2plan数据库的用户
    Database password:用户的密码
    Database table prefix:数据库创建的表的前缀
    输入完成之后continue
     
    step 3:创建管理员账号
    输入要创建的管理员的账号和密码,然后congtinue
     
    安装完成登录即可
     
    收尾
    删除install.php和update.php
    sudo rm -f /var/www/2-plan-team/install.php /var/www/2-plan-team/update.php
     
     
     
  • 相关阅读:
    日期间隔之年、月、日、时、分、秒
    加减年、月、日、时、分、秒
    求总和的百分比
    返回最值所在行数据
    返回各部门工资排名前三位的员工
    生成累计和
    将字符和数字数据分离
    从字符串中删除不需要的字符
    计算字符在字符串中出现的次数
    字符串文字中包含引号
  • 原文地址:https://www.cnblogs.com/zelos/p/3512932.html
Copyright © 2011-2022 走看看