今天就讲一讲NFS的配置,NFS共享服务提供Linux与Unix之间的共享服务1.软件包nfs-utils portmap2.主配置文件 /etc/exports3.安装rpm-qnfs-utilsportmap或者用yum-yinstallnfs[root@ser1~]#cat/etc/exports/root192.168.10.20(rw,sync,no_root_squash)/usr/src192.168.10.0/24(rw..
分类:
其他好文 时间:
2015-04-13 13:02:31
阅读次数:
139
1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ...
分类:
Web程序 时间:
2015-04-13 06:53:35
阅读次数:
220
direictives/index.js:module.exports = function(ngModule) { //register all the directives here require('./hello')(ngModule);};directives/hello.js...
分类:
Web程序 时间:
2015-04-13 06:51:49
阅读次数:
223
Error: spawn EACCES at exports._errnoException (util.js:746:11) at ChildProcess.spawn (child_process.js:1155:11) at Object.exports.spawn (child_proces...
分类:
其他好文 时间:
2015-04-10 11:03:14
阅读次数:
212
原文:http://blog.risingstack.com/node-js-best-practices/下面的的最佳实践分为代码风格和开发工作流两种.代码风格Callback约定Modules应该暴露出一个以error为第一个参数的callback接口.如下:module.exports = f...
分类:
Web程序 时间:
2015-04-08 17:56:06
阅读次数:
143
包装jquery 插件define(function (require, exports, moudles) { return function($){插件内容};})使用:seajs.use(['ajaxForm'], function (aj) { aj($);//...
分类:
Web程序 时间:
2015-04-08 01:02:25
阅读次数:
122
NFS是Network File System的缩写,即网络文件系统,这里不再详细讲解NFS的配置,具体配置看这篇博客CentOS
6 nfs共享存储配置。这里重点说的是在服务器端共享多个文件夹。
1、配置/etc/exports文件
假设服务器端要共享的目录是/var/shared/folder1 和 /var/shared/folder2。客户端要分别将这两个目录挂载到 /var/fo...
分类:
Web程序 时间:
2015-04-07 21:47:44
阅读次数:
340
1 //自定义任务 2 module.exports = function (grunt) { 3 // 项目配置 4 var http = require('http'); 5 var qs = require('querystring'); 6 var fs=r...
分类:
Web程序 时间:
2015-04-02 18:32:39
阅读次数:
185
假设NFS服务端IP:1.1.1.1,NFS客户端IP:1.1.1.2NFS服务端执行:mount-ttmpfs-osize=1gtmpfs/opt/nfsNFS服务端编辑/etc/exports,添加/opt/nfs*(rw,fsid=0)启动NFS服务端:/etc/init.d/nfsserverstartNFS服务端为/opt/nfs添加超级权限,chmod-R777/opt/nfsNFS客户端执行:show..
分类:
其他好文 时间:
2015-04-02 06:48:48
阅读次数:
136
Ubuntunfs配置被挂载端(10.0.0.2):#apt-getinstallnfs-kernel-server#vi/etc/exports按a或i进入编辑模式/home10.0.0.3(rw,sync,no_subtree_check)(即只允许10.0.0.3挂载/home目录)按Esc键退出编辑模式:wq(保存并退出)#servicenfs-kernel-serverresart挂载端(10.0.0.3):#v..
分类:
系统相关 时间:
2015-04-01 20:10:56
阅读次数:
196