zoukankan      html  css  js  c++  java
  • ssss

    18:15 2013/6/18
    未结束的事情
    1 应用API接口切换
    2 03in.com 项目管理授权 软件中不成功
    3 党校考核时间 段列出所有

    10:51 2013/6/20
    daili 应用修改
    1 去除pjax技术 布局文件 loyout修改
    2
    3 03in.com 增加接口 PublicActon


    17:56 2013/6/20

    http://192.168.1.222/app_jinxiao/index.php?m=Index&a=add_gongyin


    10:29 2013/8/14------------------

    党校公众版本 修改记录

    1 添加学员 不允许设置学号为“1” add_studenting() 方法修改
    2 超级管理登陆用户名验证 Action.class.php 如果登陆用户的this->mid 为1 表示超级管理 否则 01 0001 都为普通学员


    18:10 2013/8/16------------------

    1平台版本说明
    用户注册完成
    用户类型分为两种模式 根据用户的 type字段来确定用户
    TEacherAction.class.php StudentAction.class.php
    当前进度 对 teachAction.class.php 的模板修改中

    下周任务 开发各自角色的各自功能


    10:30 2013/8/23

    党校3问题
    1 课程按时间搜索 导出问题
    2 播放时间随机提醒 改为 20分钟
    3 搜狗浏览器 添加试卷死机问题
    4 文章学员发文章 学号0开始的有问题

    18:11 2013/8/23

    下周开发 系统消息提醒功能 消息模块接口 论坛帖子置顶


    18:12 2013/8/29
    开发任务
    验证购买当个视频 验证是否是套餐包够卖过的 同时检查时间
    902行代码 研究购买课程的时间查询比较

    18:16 2013/8/30
    主页套模板 课程调用套


    18:02 2013/9/2
    套餐购买 如果已经购买 没到期 不然继续卖 paying()


    18:12 2013/9/4


    我的 回复 待开发


    ++++++++++++++++++++++++++++++++++++++++++++9:32 2013/9/27++++++++++++++++++++++++++++++++++++++++++++++++++
    今天开发任务计划
    1 私有盘系统 权限 验证任务


    18:04 2013/9/28

    1部门读取 职务读取 各自权限分配

    18:01 2013/9/29-------------------节后开发任务
    1 权限修改已完成 接下来做节点验证 判断方式 为 uid zid jid
    2 按用户uid 编辑权限
    3 lomox 项目api 使用 开发人员已给相关资料


    =====================================15:57 2013/10/14===========================
    1 考勤的审核的 消息提醒接口未完成 待开发
    2 选择用户组件


    ============================================18:11 2013/10/15=====================================

    1 js 日程数据调去
    2 action ajaxdata() 获取数据


    3 吧公司日程也弄到 日历上来 和个人在一起 色彩区分

    18:17 2013/10/17

    变色 变图标 流程

    18:14 2013/10/18
    工作流修改 相关

    17:25 2013/10/18------------------ rsync linux 同步备份服务器 配置
    vi /etc/rsyncd.conf 配置文件
    /usr/bin/rsync --daemon 守护进程方式 启动
    ps -ef | grep rsync 查看
    lsof -i:873 查看启动进程
    iptables -A INPUT -p tcp --dport 873 -j ACCEPT 加入防火墙

    service iptables stop 将防火墙关掉


    rsync 配置文件

    #pid file = /usr/local/rsync/rsyncd.pid #运行进程的ID写到哪里 原文中有的,我没有使,日志文件

    #模块选项
    [test] # 这里是认证的模块名,在client端需要指定
    max connections = 5 #客户端最大连接数,默认0(没限制)
    uid = root #指定该模块传输文件时守护进程应该具有的uid
    gid = root #指定该模块传输文件时守护进程应该具有的gid
    path = /var/www # 需要做备份的目录
    ignore errors # 可以忽略一些无关的IO错误
    read only = no #no客户端可上传文件,yes只读
    write only = no #no客户端可下载文件,yes不能下载
    hosts allow = * #充许任何主机连接
    hosts deny = 10.5.3.77 #禁止指定的主机连接
    auth users = root # 认证的用户名,如果没有这行,则表明是匿名
    secrets file = /etc/rsync.pass # 指定认证口令文件位置


    strict modes =yes #是否检查口令文件的权限
    port = 873 #默认端口873
    log file = /var/log/rsyncd.log #日志记录文件 原文中有的,我没有使用,日志文件
    #pid file = /usr/local/rsync/rsyncd.pid #运行进程的ID写到哪里 原文中有的,我没有使用,日志文件

    #模块选项
    [freefei] # 这里是认证的模块名,在client端需要指定
    max connections = 5 #客户端最大连接数,默认0(没限制)
    uid = nobody #指定该模块传输文件时守护进程应该具有的uid
    gid = nobody #指定该模块传输文件时守护进程应该具有的gid
    path = /var/www # 需要做备份的目录
    ignore errors # 可以忽略一些无关的IO错误
    read only = no #no客户端可上传文件,yes只读
    write only = no #no客户端可下载文件,yes不能下载
    hosts allow = * #充许任何主机连接
    #hosts deny = 10.5.3.77 #禁止指定的主机连接
    auth users = root # 认证的用户名,如果没有这行,则表明是匿名
    secrets file = /etc/rsyncd.secrets # 指定认证口令文件位置


    ----

    uid = nobody
    gid = nobody
    max connections = 4
    read only = true
    #hosts allow = 202.207.177.180
    hosts allow = *
    transfer logging = true
    log format = %h %o %f %l %b
    log file = /var/log/rsyncd.log
    slp refresh = 300
    log file = /var/log/rsyncd.log
    pid file = /var/run/rsyncd.pid
    lock file = /var/run/rsyncd.lock

    [web]
    path = /var/www
    comment = Mirror to Hk server
    read only = true
    list = false
    auth users = freefei

    [test]
    path = /home/
    read only = false
    auth users = freefei
    secrets file = /etc/rsyncd.secrets

    /usr/bin/rsync -vzrtopg --delete --progress root@192.168.1.107::test /ranmufei/

    rsync --list-only root@192.168.1.107::

    备份服务器上面的的到本地客户端 ranmufei 文件夹下

    /usr/bin/rsync -vzrtopg --delete --progress freefei@192.168.1.107::test /ranmufei --password-file=/etc/rsync.pass

    ok


    开机自启动

    vi /etc/rc.local

    /usr/bin/rsync --daemon --config=/etc/rsyncd.conf

    防火墙添加 端口开放
    iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 873 -j ACCEPT

    查看防火墙时候开启端口
    iptables -L -n

    iptables -L 列出所有规则
    iptables -F 清除所有
    iptables -D chain rulenum 清除某条

    比如 INPUT 里有三条规则,那么
    iptables -D INPUT 2
    就会删掉第二条

    还要使用 service iptables save 进行保存


    在 ranmufei 文件下 创建了 backup.sh 自动备份脚本

    /usr/bin/rsync -vzrtopg --delete --progress freefei@192.168.1.107::test /ranmufei --password-file=/etc/rsync.pass


    2 手动创建 crontab 自动备份

    # 一分钟 备份一次
    */1 * * * * /usr/bin/rsync -vzrtopg --delete --progress freefei@192.168.1.107::test /ranmufei --password-file=/etc/rsync.pass


    每天上午9点20执行rysnc备份任务:
    20 9 * * * /usr/bin/rsync -vzrtopg --delete --progress freefei@192.168.1.107::test /ranmufei --password-file=/etc/rsync.pass


    ---===========================18:08 2013/10/21
    1 已经可以开机运行rsync了
    2 处理防火墙后 即可部署
    防火墙问题处理

    (1) 修改防火墙文件 vi /etc/sysconfig/iptables
    删除全部 重新添加上
    # Firewall configuration written by system-config-firewall
    # Manual customization of this file is not recommended.
    *filter
    :INPUT DROP [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    #ssh
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    #http
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    #mysql
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
    #rsync
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 873 -j ACCEPT
    -A INPUT -j REJECT --reject-with icmp-host-prohibited
    -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    COMMIT


    保存 重启
    注意 两台服务器都要这样弄


    ===========================================18:07 2013/10/22================


    1 工作流的 表单不准确 待检测
    2 开启自定义表单功能


    =============17:39 2013/10/23==============
    应用消息 提醒机制 两种 1 当前页面提醒 2 消息中心查看


    模板根据权限显示设置

    <?php
    $accesss= access_r($appinfo.uid,APP_NAME,MODULE_NAME,ACTION_NAME);
    if(!$accesss){
    echo "没有权限";
    }else{
    echo "有权限";
    }
    ?>

    =======18:01 2013/10/24============
    1 进销存
    2 用户选择控件 修改程序

    -------18:11 2013/10/28------
    库存管理


    --------------17:44 2013/10/29-----------
    培训 项目 选择控件修改等

    -------------11:03 2013/10/30-----

    <h1>当前列表</h1>
    <hr>
    <div class="alert alert-error alert-block"> <a class="close" data-dismiss="alert" href="#">×</a>
    <h4 class="alert-heading">说明!</h4>
    更多帮助请查看收藏~~~

    <hr/>


    </div>


    <div class="widget-box">
    <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
    <h5>出库单</h5></div>
    <div class="widget-content">

  • 相关阅读:
    shiro cookie登录根据角色跳转不同页面的解决方案
    springboot 引入shiro缓存及rememberMe支持
    android开发记录2 webview调用二维码扫描
    android app开发记录1
    bootstrap datetimepicker 出现选中后没有日期的原因
    mybatis-plus @Select select in 查询实现
    Mybatis-Plus 中的 @Select 出现查询不到数据的原因
    caffe Python API 之InnerProduct
    caffe Python API 之LRN
    caffe Python API 之Dropout
  • 原文地址:https://www.cnblogs.com/freefei/p/3396514.html
Copyright © 2011-2022 走看看