/assets/avatar.png
Live Long and Prosper 🖖

can't use gulp-sass

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
(node:29753) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
module.js:568
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen(/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node, 1): no suitable image found.  Did find:
	/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node: truncated mach-o error: segment __TEXT extends to 1212416 which is past end of file 86576
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/lib/index.js:24:15)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)

Process finished with exit code 1

centos安装nginx过程

  1. 下载最新的nginx包(编译安装,个人喜欢新版本),下载包

  2.   ./configure: error: C compiler cc is not found

    由于默认缺少编译器,所以需要安装一些,还有依赖的依赖类似这种,反正不只是c编译器,执行 yum install gcc gcc-c++ ncurses-devel perl

centos安装记录

  1. 使用iso文件写入centos iso文件

  2. 开机启动设置U盘直接安装, 不修改配置文件。 直接在安装时设置里打开网络,九可以跳过第 4 条。

  3. 默认未安装wget ,x-windows,nano

  4. 配置网络

    vi /etc/sysconfig/network-scripts/ifcfg-网卡名称不同而不同

    ONBOOT=yes //将ONBOOT="no"改为ONBOOT="yes"

    service network restart

  5. 安装ifconfig yum -y install net-tools

  6. 安装wget yum -y install wget

Creating Subdomains with Apache Virtual Hosts | Apache Subdomain Virtual Host Example

Set Up Subdomains with Apache Virtual Hosts

Some people are unaware that the “www” part of the URL is actually a subdomain (http://www.example.com), and can (in theory) point to a different location than http://example.com - it is not advised that you use www as an active sudomain, as most people expect both example.com and www.example.com to have the same content.

This is actually the basis for canonicalisation, but that’s another blog post altogether

So how do we set up subdomains using Apache virtual hosts? It’s actually very simple, we just need to configure two things, follow this guide for a very simple apache subdomain virtual host example: Apache Virtual Host Configuration File