随笔分类 -  linux

摘要:查看CentOS版本方法 有以下命令可以查看:# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescript 阅读全文
posted @ 2018-11-08 16:55 浪迹天涯-阿震 阅读(26768) 评论(0) 推荐(1)
摘要:以centos6.6为例 1、安装以及配置php 首先在官网下载源码包http://php.net/downloads.php 这里下载php-7.1.16 接下来进行参数配置,配置前如果没有libxml2和libxml2-devel会报错,所以应该更新libxml2并安装libxml2-devel 阅读全文
posted @ 2018-04-19 11:42 浪迹天涯-阿震 阅读(623) 评论(0) 推荐(0)
摘要:官方文档 http://nginx.org/en/docs/http/configuring_https_servers.html 官方的最简单的https配置: php的常规的http配置: php的https配置(http转发到https): 阅读全文
posted @ 2018-04-18 23:00 浪迹天涯-阿震 阅读(1628) 评论(0) 推荐(0)
摘要:1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemc 阅读全文
posted @ 2018-04-18 22:18 浪迹天涯-阿震 阅读(5573) 评论(0) 推荐(0)
摘要:如果命令不存在,则yum安装 阅读全文
posted @ 2018-04-18 21:33 浪迹天涯-阿震 阅读(251) 评论(0) 推荐(0)
摘要:为了给公司的服务器上搭建gitlab环境并且配置钩子(实现在本地git push之后服务器自动git pull),整了好久,最后终于把问题解决了,下面是记录安装gitlab之后引发的一系列问题: 首先搭建gitlab是参考了http://www.linuxidc.com/Linux/2016-06/ 阅读全文
posted @ 2016-12-25 00:47 浪迹天涯-阿震 阅读(3556) 评论(1) 推荐(0)
摘要:下面用编辑crontab举个例子: 在命令行输入 会直接进入vim编辑模式编辑crontab文件。 随后可以输入“i”进入insert模式 然后移动光标在指定的位置添加文字,可以按“esc”键先进入Normal Mode,在Normal Mode下输入“:”进入Command-line,在Comma 阅读全文
posted @ 2016-10-09 12:41 浪迹天涯-阿震 阅读(20172) 评论(0) 推荐(1)