/assets/avatar.png

Live Long and Prosper 🖖

Another web server is already running.

当需要调整xampp apache 端口的时候,而且当这时候80端口又被占用的时候,去 start , restart apache的时候就会出现如下错误: 1 XAMPP: Another web server is already running. 就算是改了

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.

centos安装nginx过程

下载最新的nginx包(编译安装,个人喜欢新版本),下载包 ./configure: error: C compiler cc is not found 由于默认缺少编译器,所以需要安装一些,还有依赖的依赖类似这种,反正

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