echo

Linux配置Nginx,MySql,php-fpm开机启动的方法

拥有回忆 提交于 2019-12-26 20:23:29
一. Nginx 开机启动 1、在/etc/init.d/目录下创建脚本 vim /etc/init.d/nginx 2、编写脚本内容 (将以下复制进去相应改动安装路径) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is a high-performance web and proxy server. # It has a lot of features, but it's not for everyone. # processname: nginx # pidfile: /var/run/nginx.pid # config: /usr/local/nginx

linux nginx,php开机启动

不打扰是莪最后的温柔 提交于 2019-12-26 20:22:34
nginx开机启动 1.首先,在linux系统的/etc/init.d/目录下创建nginx文件 vim /etc/init.d/nginx 2.加入脚本 1 #!/bin/bash 2 # nginx Startup script for the Nginx HTTP Server 3 # it is v.0.0.2 version. 4 # chkconfig: - 85 15 5 # description: Nginx is a high-performance web and proxy server. 6 # It has a lot of features, but it's not for everyone. 7 # processname: nginx 8 # pidfile: /var/run/nginx.pid 9 # config: /usr/local/nginx/conf/nginx.conf 10 nginxd=/usr/local/nginx/sbin/nginx 11 nginx_config=/usr/local/nginx/conf/nginx.conf 12 nginx_pid=/var/run/nginx.pid 13 RETVAL=0 14 prog="nginx" 15 # Source function library. 16 .

linux Nginx服务开机自启

旧城冷巷雨未停 提交于 2019-12-26 20:22:15
linux Nginx服务开机自启 Nginx 是一个很强大的高性能Web和反向代理服务器。虽然使用命令行可以对nginx进行各种操作,比如启动等,但是还是根据不太方便。下面介绍在linux下安装后,如何设置开机自启动。 首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/nginx.conf # config: /etc/sysconfig/nginx # pidfile: /var/run/nginx.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig

nginx配置开机启动/usr/local/nginx/sbin/nginx【引】

↘锁芯ラ 提交于 2019-12-26 20:22:02
Nginx 是一个很强大的高性能Web和反向代理服务器。虽然使用命令行可以对nginx进行各种操作,比如启动等,但是还是根据不太方便。下面介绍在 Linux 下安装后,如何设置开机自启动。 首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/nginx.conf # config: /etc/sysconfig/nginx # pidfile: /var/run/nginx.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check

Linux(CentOS)下设置nginx开机自动启动和chkconfig管理

感情迁移 提交于 2019-12-26 20:21:45
Nginx 是一个很强大的高性能Web和反向代理服务器。虽然使用命令行可以对nginx进行各种操作,比如启动等,但是还是根据不太方便。下面介绍在 Linux 下安装后,如何设置开机自启动。 首先,在 linux 系统的/etc/init.d/目录下创建nginx文件,使用如下命令: vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/nginx.conf # config: /etc/sysconfig/nginx # pidfile: /var/run/nginx.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check

Linux(CentOS)下设置nginx开机自动启动(2个办法)

天涯浪子 提交于 2019-12-26 20:21:36
首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: 1 vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/nginx.conf # config: /etc/sysconfig/nginx # pidfile: /var/run/nginx.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 nginx="/usr/sbin/nginx" prog=$

nginx 自启动设置

女生的网名这么多〃 提交于 2019-12-26 20:21:18
首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: 1 vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/nginx.conf # config: /etc/sysconfig/nginx # pidfile: /var/run/nginx.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 nginx="/usr/sbin/nginx" prog=$

取最右侧字符

坚强是说给别人听的谎言 提交于 2019-12-26 17:23:00
groupN=`sqlplus -S sys/${Passwd} as sysdba <<EOF set echo off feedback off heading off underline off; select group# from v\\$log; exit; EOF` #GroupNo=`echo ${groupN: -1}` tmpGrpNo=`echo $groupN | sed -n '$p'` <===将一行一行,变成一行,并以空格隔开。 GroupNo`echo ${tmpGrpNo} | awk -F " " '{print $NF}' ` <====取最右侧的字符 echo "There are ${GroupNo} existing redo groups. Start to add extra redo log." 来源: CSDN 作者: mygodhome 链接: https://blog.csdn.net/mygodhome/article/details/103715141

Memcached原理与部署

血红的双手。 提交于 2019-12-26 15:43:34
Memcached概述 一套开源的高性能分布式内存对象缓存系统 所有的数据都存储在内存中 支持任意存储类型的数据 提高网站的访问速度 Memcached路由算法 ●求余数hash算法 先用key做hash运算得到一个整数,再去做hash算法,根据余数进行路 由,这种算法适合大多数据需求,但是不适合用在动态变化的环境中 ●一致性hash算法 按照hash算法把对应的key通过一定的hash算法处理后映射形成一一个首 尾相接闭合循环,然后通过使用与对象存储一样的hash算法将机器也映 射到环中,顺时针方向计算将所有对象存储到里自己最近的机器中 适合在动态变化的环境中使用 环境部署 Memcached服务器 192.168.149.139 Memcache客户端 192.168.149.130 实验步骤 配置Memcached服务器 安装编译环境 [root@server ~]# yum install gcc gcc-c++ make -y 远程挂载获取资源包 [root@server ~]# mount.cifs //192.168.142.1/memcached /mnt 解压资源包 [root@server memcached]# tar zxvf libevent-2.1.8-stable.tar.gz -C /opt [root@server memcached]# tar

批处理-配置网卡

家住魔仙堡 提交于 2019-12-26 12:26:26
固定IP @echo off REM 声明采用UTF-8编码 chcp 65001 REM netsh interface ip show interfaces REM ipconfig/all set Nic = 以太网 REM set /p Nic = 输入网卡名称: set Addr = 192.168.1.1 set Mask = 255.255.255.0 set Gway = 192.168.1.0 REM set Dns1 = 10.15.0.1 REM set Dns2 = 10.100.1.2 REM set Wins1 = 10.15.0.1 REM set Wins2 = 10.100.1.2 echo ------------------------------------------------------ echo 正在进行IP设置,请稍等 echo. IP地址 = %Addr% echo. 子网掩码 = %Mask% echo. 默认网关 = %Gway% netsh interface ipv4 set address name = %Nic% source = static addr = %Addr% mask = %Mask% gateway = %Gway% gwmetric = 0 rem echo. 首选DNS = %Dns1% rem