常用linux命令备忘

备忘:

关闭防火墙:# systemctl stop firewalld

查看防火墙状态:#  systemctl status firewalld 

停止防火墙:#  systemctl disable firewalld

禁用防火墙:#  systemctl stop firewalld

查看selinux状态:# sestatus

查看某个文件在那个目录:# whereis phpize

 安装5.6版本的php:# yum install php56w-redis.x86_64

php的一个命令,可用于生成php的config文件:# phpize

执行configure命令:# ./configure

解压文件:# tar zxvf phpredis-2.2.4.tar.gz

安装插件:# yum -y install php-mysqli

安装php插件:# yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64

# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

查看已安装的php文件:# yum list installed |grep php

设置开机自启动:# echo "/usr/local/bin/redis-server /etc/redis.conf" >>/etc/rc.local

设置权限:# chmod 777 www/jwt/backend

带参数删除文件夹:# rm -rf www/jwt

重新加载域名服务:# rndc reload

设置selinux:# setenforce 0

启动redis服务端:# redis-server /etc/redis.conf

posted @ 2017-12-14 11:46  喜欢的事用心去做  阅读(175)  评论(0编辑  收藏  举报