随笔分类 -  centos

CentOS7.0 采用压缩包 安装Nginx 1.7.4和添加Tomcat为系统服务 nginx结合tomcat
摘要:CentOS7.0 采用压缩包 安装Nginx 1.7.4 一、安装准备首先由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有g++、gcc、openssl-devel、pcre-devel和zlib-devel 所以执行如下命令安装 $ y 阅读全文
posted @ 2017-06-09 11:10 阚壠
centos7 自动定时备份mysql数据库
摘要:shell脚本:mysqlbak.sh #!/bin/bashPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbinexport PATH #备份的路径backupdir='/root/database_backup/ywa 阅读全文
posted @ 2017-06-09 10:44 阚壠 阅读(3816) 评论(0) 推荐(0)
centos mysql 修改mysql用户密码
摘要:查看服务器版本: cat /etc/redhat-release 查看mysql 版本: mysql -u root -p use mysql; ###mysql 5.7以上。。 update user SET authentication_string = PASSWORD('newpasswor 阅读全文
posted @ 2017-06-09 10:41 阚壠 阅读(8646) 评论(0) 推荐(1)
centos7 Apache 2.4.6 多域名多网站配置
摘要:Apache 2.4.6 多域名多网站配置 在/etc/httpd/conf 下 编辑 vim httpd.conf 添加:ServerName 外网IP 并注释 #DocumentRoot "/var/www/html/" 在 /etc/httpd/conf.d下 编辑文件 vim httpd-v 阅读全文
posted @ 2017-06-07 14:12 阚壠 阅读(1091) 评论(0) 推荐(0)
centos7安装Lnmp(Linux+Nginx+MySql+Php+phpMyAdmin+Apache)
摘要:centos7安装Lnmp(Linux+Nginx+MySql+Php)及Apache Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx是一个高性能的HTTP和反向代理服务器,Nginx 超越 Apache 的高性能和稳定性,使得国内使用 Nginx 作为 Web 服务器的网站也越来 阅读全文
posted @ 2017-05-19 09:07 阚壠 阅读(4050) 评论(0) 推荐(1)
centos7 操作记录
摘要:centos7 firewall 命令查看已经开放的端口firewall-cmd --list-ports查看开放的服务firewall-cmd --list-services开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent f 阅读全文
posted @ 2017-05-18 11:45 阚壠 阅读(4245) 评论(0) 推荐(0)