查看SELinux状态:1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态SELinux status: enabled2、getenforce ##也可以用这个命令检查关闭SELinux:1、临时...
分类:
系统相关 时间:
2014-12-03 11:49:23
阅读次数:
213
gearman 创建Mysql持久化队列的方式如下:1. 登入mysql命令行,运行: create database gearman;2. 启动gearman,命令如下:/usr/local/gearman/sbin/gearmand -p 4730 -L 0.0.0.0 --log-file=....
分类:
数据库 时间:
2014-12-02 23:59:32
阅读次数:
451
需要各主机对账户nova做ssh互信。修改系统用户nova,允许su成nova用户。vim/etc/passwd把nova:x:109:116::/var/lib/nova:/sbin/nologin改成nova:x:109:116::/var/lib/nova:/bin/sh然后切换到nova账户。ssh-keygen-trsa-P""
cd.ssh/
catid_rsa.pub>>authorized_keys然后把..
分类:
其他好文 时间:
2014-12-02 17:35:12
阅读次数:
170
安装JDK
解压文件,文件夹为jdk 1.8.0_20,并且sudo gedit /etc/environment
在后面加入以下几行:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/lib/jdk1.7.0/bin"
CLASSPATH=.:/usr/l...
分类:
系统相关 时间:
2014-12-02 13:36:28
阅读次数:
160
#!/bin/bash#setenvexportLANG="en_US.UTF-8"exportPATH=$PATH:/bin/sbin:/usr/sbin#whetherroottorunninguserif[[$(whoami)!=root]];thenecho"pleasesu-rootrunthescript."fiSERVICE=`whichservice`CHKCONFIG=`whichchkconfig`./etc/init.d/functions#settimeinitTime(){yum-y..
分类:
系统相关 时间:
2014-12-02 00:25:59
阅读次数:
319
什么是god?god是一个进程守护程序,当它发现你指定的程序异常退出时,会自动按照之前的方式进行启动。部署god1,clone源代码gitclonehttps://github.com/nofdev/god.git2,编辑配置文件vigod.confname=nginxcommand_line=/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf..
分类:
系统相关 时间:
2014-11-30 17:23:54
阅读次数:
220
环境:CentOS6.564bit源码包路径:/usr/local/src需要软件包:mysql-5.6.20.tar.gz
gmock-1.6.0.zip安装路径:/opt/mysql安装过程[root@master~]#useradd-M-s/sbin/nologinmysql
[root@master~]#yum-yinstallgccgcc-c++autoconfautomakezlib*libxml*ncurses-devellibtool-ltdl-..
分类:
数据库 时间:
2014-11-28 18:34:21
阅读次数:
299
创建备份目录,在这里以/root/bak/mysql为例:cd mkdir bakcd bakmkdir mysql在/usr/sbin下touch一个sh:cd /usr/sbintouch myDBbackup.sh内容如下:#!/bin/bash#Name:myDBbackup.sh b...
分类:
数据库 时间:
2014-11-27 18:08:10
阅读次数:
192
groupadd-g188mysqluseradd-u188-gmysql-s/sbin/nologin-Mmysqlmysqla和mysqlb共用一个datadir目录这个目录是用nfs共享出来的,mysqlamysqlbnfs服务器上都执行groupadd-g188mysqluseradd-u188-gmysql-s/sbin/nologin-Mmysqlchown-Rmysql:mysql/nfs/mysqlmysql_install_db--user..
分类:
数据库 时间:
2014-11-26 19:08:54
阅读次数:
174
今天在SUSE11.1上配置vsftp后,使用新建的用户登陆不上报“530Loginincorrect”错误,在网上用vsftp530Loginincorrect关键词查到的办法都解决不了。而此时root用户是可以登陆的,最后发现是因为/etc/shells少了一行/sbin/nologin因为我加用户的时候shell使用的/sbin/nologin,..
分类:
其他好文 时间:
2014-11-26 11:35:59
阅读次数:
194