上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: [root@rhel5 ~]# rsync -a log.tar.gz root@192.168.124.129:/tmp root@192.168.124.129's password: Permission denied, please try again. root@192.168.124.129's password: rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(260) [sender=2.6.8] [r... 阅读全文
posted @ 2014-02-25 20:41 jamesbd 阅读(2464) 评论(0) 推荐(0) 编辑
摘要: 第一次、提示下载公钥 [root@rhel5 ~]# scp install.log root@192.168.124.129:/tmp The authenticity of host '192.168.124.129 (192.168.124.129)' can't be established. RSA key fingerprint is 6f:65:b6:80:62:4a:11:f3:03:21:36:ab:d9:f5:2b:1e. Are you sure you want to continue connecting (y... 阅读全文
posted @ 2014-02-25 20:34 jamesbd 阅读(373) 评论(0) 推荐(0) 编辑
摘要: ssh root@192.168.124.128 密钥登录: 1)、ssh-keygen 生成公钥和私钥 [root@rhel5 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter ... 阅读全文
posted @ 2014-02-25 20:33 jamesbd 阅读(939) 评论(0) 推荐(0) 编辑
摘要: PHP操作MySQL数据库方式有三种: *1. mysql 最原始的、纯过程化的 如连接: mysql_connect(主机名,账号,密码); 2. mysqli 改进版的、兼容过程化和面向对象化操作 如:连接: mysqli_connect(主机名,账号,密码,库名) //过程化 new mysqli(主机名,账号,密码,库名) //面向对象 *3. PDO 通用的,兼容其他数据库 , 纯面向对象方式 如: 连接: new PDO(DSN,账号,密码); 选择PDO的原因:跨数据库,带预处理(防sql注入)、支持事务操作================... 阅读全文
posted @ 2014-02-25 20:32 jamesbd 阅读(2477) 评论(0) 推荐(0) 编辑
摘要: linux启动过程:bios->mbr主引导扇区->grub启动文件->linux内核->initrd镜像文件->init->/etc/inittabvi /etc/inittab1.系统运行级别 id:3:initdefault #计算机的运行级别 0 关机 1 单用户模式 2 字符界面,没有NFS 3 字符界面 4 保留 5 图形界面 6 重启 id:3:initdefault: # System initialization. si::sysinit:/etc/rc.d/rc.sysinit 2./etc/rc.d/rc.sysinit #主机名 #主 阅读全文
posted @ 2014-02-25 20:31 jamesbd 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 作为服务器的机器IP:192.168.124.129 主机名:Centos 操作系统:CentOS 5.51、 软件安装yum –y install samba*2、 配置#======================= Global Settings =====================================[global]# ----------------------- Network Related Options -------------------------## workgroup = NT-Domain-Name or Workgroup-Name, eg: 阅读全文
posted @ 2014-02-25 20:30 jamesbd 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 作为服务器的机器IP:192.168.124.129 主机名:Centos 操作系统:CentOS 5.5需求:匿名用户可以下载公共目录里边内容,本地用户登录有rwx权限软件安装1、 准备测试账号[root@Centos Server]# groupadd web[root@Centos Server]# useradd -g web tony[root@Centos Server]# useradd -g web james[root@Centos Server]# passwd tony[root@Centos Server]# passwd james2、 修改配置文件vi /etc/v 阅读全文
posted @ 2014-02-25 20:27 jamesbd 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 网络环境1、作为服务器的机器IP:192.168.124.128 操作系统:Red Hat Enterprise Linux 52、作为客户端的机器IP:192.168.124.129 操作系统:CentOS 5.5NfS服务的搭建1、 安装nfs服务相关软件a) yum –y install nfs*2、 修改配置文件a) 添加共享目录[root@localhost etc]# vi /etc/exports3、 启动nfs服务4、 测试共享a)、在客户端机器上查看共享服务器上资源b)、客户端挂载使用 mount -t nfs 192.168.124.128:/tmp /mnt创建文件测试: 阅读全文
posted @ 2014-02-25 20:23 jamesbd 阅读(221) 评论(0) 推荐(0) 编辑
摘要: DROP TABLE IF EXISTS pre_common_admincp_cmenu;CREATE TABLE pre_common_admincp_cmenu (`id` SMALLINT(6) UNSIGNED NOT NULLAUTO_INCREMENT,`title` VARCHAR(255) NOT NULL COMMENT '菜单名称',`url` VARCHAR(255) NOT NULL COMMENT '菜单地址',`sort` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '菜单 阅读全文
posted @ 2014-02-25 20:12 jamesbd 阅读(321) 评论(0) 推荐(0) 编辑
摘要: ===================================== JavaScript 脚本语言===================================== 什么是JavaScript? 1. JavaScript 是一种客户端脚本语言(脚本语言是一种轻量级的编程语言)。 2. JavaScript 通常被直接嵌入 HTML 页面。 3. JavaScript 是一种解释性语言(就是说,代码执行不进行预编译)。 特点: 1. 弱类型 2. 基于对象。在客户端浏览器上执行的脚本: 1. JavaScript 2. VBscript 3 applet (需要... 阅读全文
posted @ 2014-02-25 20:10 jamesbd 阅读(1555) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页