[root@izbp18dv3a3metugyd02qxz bin]# rpm -qa | grep memcache [root@izbp18dv3a3metugyd02qxz bin]# yum list installed |grep memcache [root@izbp18dv3a3metugyd02qxz bin]# yum clean all [root@izbp18dv3a3metugyd02qxz bin]# yum -y update [root@izbp18dv3a3met…
nginx编译安装的目录是/usr/local/nginx nginx配置文件是/usr/local/nginx/conf/nginx.conf systemctl管理的服务文件在/usr/lib/systemd/system下 进入目录vim nginx.service,写下如下的代码 [Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network.target remote-fs.t…
一.安装gcc # yum -y install gcc 二.安装libevent # wget http://www.monkey.org/~provos/libevent-2.0.12-stable.tar.gz# tar zxf libevent-2.0.12-stable.tar.gz # cd libevent-2.0.12-stable#./configure  --prefix=/usr/local/lib# make && make install 三.下载安装最新版本:h…
首先安装和启动服务的教程是参考文章:ES入门之一 安装ElasticSearch 然后在最后的启动es服务时遇到了几个小问题,因此在这里记录一下. 因为我对linux并不是很熟悉,因此文中如果有说错的或者是使用了笨拙的方式的,欢迎指出. 1.内存不足问题 因为练手使用的是aliyun,内存只有1GB,而es默认设置jvm最少需要1GB的堆内存,因此在启动时会报一个内存分配错误,具体的错误截图没保留,因此就不贴了. 解决方法:修改config/jvm.options里面的-Xms和-Xmx的值为合…
因为要给特殊的虚拟机关联文件指定selinux标签,而默认的Libvirt没有这个功能,所以需要修改LIbvirt源代码,重新编译安装Libvirt,而手动编译安装的LIbvirt,没有办法使用systemctl管理libvirtd服务,只能通过libvirtd -d的方式手动启动.然而,手动启动的Libvirtd服务并不符合开发规范,所以只能手动把libvirtd.service添加到systemctl管理. 这就要详解下systemctl管理程序了 一.systemctl介绍 systemc…
一.安装nginx所需环境 # yum install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel -y 二.安装nginx ① 下载nginx # wget -c https://nginx.org/download/nginx-1.12.1.tar.gz ② 解压 # .tar.gz # cd nginx- ③ 使用默认配置 # ./configure ④ 编译.安装 # make # make install…
今天在Mac上安装memcached服务的时候 由于安装memcached之前需要安装libevent依赖包 所以使用brew install libevent 安装过程中报错 Warning: You are using OS X 10.11. We do not provide support for this pre-release version. You may encounter build failures or other breakage. ==> Downloading ht…
一.源码安装Nginx: 先安装gcc编译器(安装过的可以忽略) [root@localhost ~]# yum -y install gcc gcc-c++ wget 进入src目录 [root@localhost ~]# cd /usr/local/src/ 下载 nginx软件包 [root@localhost src]# wget http://nginx.org/download/nginx-1.14.0.tar.gz 解压 [root@localhost src]# tar -zxv…
透过 systemctl 管理单一服务 (service unit) 的启动/开机启动与观察状态 一般来说,服务的启动有两个阶段,一 个是『开机的时候设定要不要启动这个服务』, 以及『你现在要不要启动这个服务』,假如我们现在要『立刻取消 atd 这个服务』时,正规的方法 (不要 用 kill) 要怎么处理? [root@study ~]# systemctl [command] [unit] command 主要有: start :立刻启动后面接的 unit stop :立刻关闭后面接的 uni…
1. 背景 CentOS 7.x 之前的版本,系统启动时,第一支呼叫的程序是 init ,然后 init 去唤起所有的系统所需要的服务,无论是本地服务还是网络服务.所有的服务启动脚本都放置于 /etc/init.d 下面,基本上都是使用 bash shell script 所写成的脚本程序. 从CentOS 7.x 以后,Red Hat 放弃了 init 启动脚本的方法,改用systemd 这个启动服务管理机制. 2.systemctl管理服务的好处 平行处理所有服务,加速开机流程 旧的init…