配置脚本启动
安装路径:/usr/local/mysql 把memcached脚本文件放在 /etc/rc.d/init.d/ 目录下,脚本在最下面more >>
代理模式要让代理类和目标类实现相同的接口,客户端通过调用代理类来调用目标类方法,代理类会将所有的方法调用分派到目标对象上反射执行,可以在分派过程中添加“前置”及“后置”。
JDK实现动态代理需要实现类通过接口定义业务方法。
more >>
控制反转:一般程序需要多个对象协同来完成,通常都需要new,这样耦合度就比较高。
而IOC思想是:Spring来实现这些相互依赖对象的创建、协调工作。
对象关注业务。
spring来负责控制对象的生命周期和对象间的关系
more >>
>/usr/local/openresty/nginx/nginx/sbin/nginx -c /usr/local/openresty/nginx/nginx/conf/nginx.conf
安装路径:/usr/local/openresty/nginx 把nginx脚本文件放在 /etc/rc.d/init.d/ 目录下,脚本在最下面 增加服务并开机启动 # touch /etc/init.d/nginx # chmod +x /etc/init.d/nginx # chkconfig --add nginx # chkconfig --level 345 nginx on # chkconfig --list nginxmore >>
>/usr/local/memcached/memcached -d -m 100m -p 11211 -u root
安装路径:/usr/local/memcached 把memcached脚本文件放在 /etc/rc.d/init.d/ 目录下,脚本在最下面more >>
>/usr/local/redis/src/redis-server /usr/local/redis/redis_6380.conf
安装路径:/usr/local/redis 把redis脚本文件放在 /etc/rc.d/init.d/ 目录下,脚本在最下面 增加服务并开机启动 # touch /etc/init.d/redis # chmod +x /etc/init.d/redis # chkconfig --add redis # chkconfig --level 345 redis on # chkconfig --list redismore >>
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true