jQuery+css3实现Ajax动态点击删除功能
2014-08-14 10:43
141 查看
zabbix 监控安装配置之lnmp搭建
说明:
在使用zabbix监控时候,我们第一步是需要配置个php 运行环境,我们可以采用lamp或lnmp,本文采用lnmp环境。
约定:
1. CentOS 6.5 x86_64
2. nginx 1.6.2
3. PHP 5.5.19
4. FastCGI
步骤:
1. nginx
a. 达到nginx支持urlrewrite、gzip压缩、ssl、nginx status等
b. 过程:
a. 安装
a. php编译依赖的库
a. 取消注释
http//192.168.0.100/test.php
本文出自 “木子博客” 博客,请务必保留此出处http://ggbond.blog.51cto.com/8886865/1579741
说明:
在使用zabbix监控时候,我们第一步是需要配置个php 运行环境,我们可以采用lamp或lnmp,本文采用lnmp环境。
约定:
1. CentOS 6.5 x86_64
2. nginx 1.6.2
3. PHP 5.5.19
4. FastCGI
步骤:
1. nginx
a. 达到nginx支持urlrewrite、gzip压缩、ssl、nginx status等
b. 过程:
# rpm -ivh http://mirrors.ustc.edu.cn/epel/6Server/x86_64/epel-release-6-8.noarch.rpm # yum install zlib-devel pcre-devel openssl-devel -y # cd /usr/local/src # wget http://nginx.org/download/nginx-1.6.2.tar.gz # tar xzvf nginx-1.6.2.tar.gz # cd nginx-1.6.2 # useradd -M -s /sbin/nologin nginx # ./configure --prefix=/opt/nginx --with-zlib= --with-pcre --with-http_ssl_module --with-openssl= --user=nginx --group=nginx --with-http_stub_status_module # make && make install cleanc. 启动nginx
# /opt/nginx/sbin/nginx2. MySQL
a. 安装
# yum install mysql-server mysql-devel -yb. 启动
# service mysqld start # chkconfig mysqld on # mysql_secure_installation ---一步一来,设置root密码等3. PHP
a. php编译依赖的库
# yum install libxml2-devel bzip2-devel libcurl-devel libjpeg-devel freetype libjpeg-develbpng-devel libmcrypt-develb. 下载安装PHP
# cd /usr/local/src # wget http://cn2.php.net/distributions/php-5.5.19.tar.bz2 # tar xjvf php-5.5.19.tar.bz2 # cd php-5.5.19 # useradd -M -s /sbin/nologin php-fpm # ./configure --prefix=/opt/php --with-mcrypt --enable-mbstring --enable-pdo --with-curl --disable-debug --enable-inline-optimization --with-bz2 --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli --enable-fpm --with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gettext --enable-xmlwriter --enable-xmlreader --enable-ctype --with-config-file-path=/opt/php/etc --enable-bcmath # make && make installc. 启动FastCGI
# cp php.ini-production /opt/php/etc/php.ini # cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm # chmod +x /etc/init.d/php-fpm # cp sapi/fpm/php-fpm.conf /opt/php/etc/phhp-fpm.conf # sed -i 's/\;pid/pid/;s/user\ =\ nobody/user\ =\ php-fpm/; s/group\ =\ nobody/group\ =\ php-fpm/' /opt/php/etc/php-fpm.conf # service php-fpm start4. nginx 支持FastCGI
a. 取消注释
# vim /opt/nginx/conf/nginx.conf location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }b. 平滑重启nginx
# kill -HUP `ps -ef | grep -P 'nginx:\s+master'|awk '{print $2}'`5. 测试:
# vim /opt/nginx/html/test.php <?php phpinfo(); ?> # service iptables stop用浏览器打开测试下
http//192.168.0.100/test.php
本文出自 “木子博客” 博客,请务必保留此出处http://ggbond.blog.51cto.com/8886865/1579741
相关文章推荐
- jQuery+css3实现Ajax点击后动态删除功能的方法
- jQuery+css3实现Ajax动态点击删除功能
- jQuery+css3实现Ajax点击后动态删除功能的方法
- 动态的把数据显示在table中,点击某一行的删除按钮实现该行的删除(通过ajax实现页面的无刷新加载)
- 动态的把数据显示在table中,点击某一行的删除按钮实现该行的删除(通过ajax实现页面的无刷新加载)
- Repeater控件结合UpdatePanel实现Ajax分页和删除功能
- 用ajax实现分页 删除功能(一)
- 使用JS实现简单缓存功能,防止用户重复点击,重复AJAX提交
- 转载 使用AJAX实现动态刷新页面功能
- 使用Ajax实现动态双组合功能(asp.net)
- C语言:动态链表的建立,查找,删除,插入功能的实现
- Jquery、Json、Struts2、Spring实现Ajax动态功能以及注意事项
- js实现网页收藏功能,动态添加删除网址
- JS小功能(操作Table--动态添加删除表格及数据)实现代码
- JavaScript动态实现表格添加、删除、插入、上移、下移一行功能
- Ajax+jQuery+bootstrap+Java实现异步点赞功能,并限制点击次数
- jQuery + JavaScript 实现的动态添加文本框功能 和 动态删除文本框功能(二)
- 一个页面实现修改删除列表显示,ajax动态生成table(使用ajax,springmvc,jsp)
- 用ajax实现分页 删除功能(三)
- 用ajax实现分页 删除功能(二)