功能介绍 useradd命令用于Linux中创建的新的系统用户。useradd可用来建立用户帐号。帐号建好之后,再用passwd设定帐号的密码.而可用userdel删除帐号。使用useradd指令所建立的帐号,实际上是保存在/etc/passwd文本文件中。 在Slackware中,adduser指 ...
分类:
其他好文 时间:
2016-12-15 09:20:00
阅读次数:
195
ls -l // 查看文件的权限 等价于 ll 文件的权限信息查看 -rw-rw-r-- 1 ceshi ceshi 891 Aug 8 17:28 server drwxrwxr-x 10 ceshi ceshi 4096 Aug 12 17:51 www.aa.com 开始 10个字符确定不同用 ...
分类:
系统相关 时间:
2016-12-14 02:09:51
阅读次数:
223
安装方法 http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html shell> groupadd mysqlshell> useradd -r -g mysql -s /bin/false mysqlshell> cd /usr ...
分类:
数据库 时间:
2016-12-11 02:36:15
阅读次数:
240
使用ssh搭建远程git仓库1.使用ssh登录上服务器,创建一个repos仓库目录2.创建一个用户组git-rw groupadd git-rw3.将repos目录组改为git-rw组权限 chgrp -R git-rw repos4.给repos组加上写权限 chmod g+w repos,就这样 ...
分类:
其他好文 时间:
2016-12-11 02:16:34
阅读次数:
173
一、账号安全控制账号安全基本措施1、系统账号清理-将非登录用户的Shell设为/sbin/nologinUseradd–s/sbin/nologin
Usermod-s-锁定长期不使用的账号Passwd–l
Passwd-u-删除无用的账号Userdel-r-锁定账号文件passwd、shadow[root@localhost~]#chattr+i/etc/passwd/etc/shadow
[..
分类:
其他好文 时间:
2016-12-10 23:15:58
阅读次数:
338
1、源码编译安装LNMP架构环境;1.1安装nginx服务配置管理的用户组groupadd-rnginxuseradd-r-gniginxnginx编译安装文件yuminstallpcre-devel#安装必须的包cd/pkg/ningx-1.6.1./configure\--prefix=/usr/local/nginx\--sbin-path=/usr/local/nginx/sbin/nginx\--conf-path=/etc/n..
分类:
其他好文 时间:
2016-12-09 10:48:24
阅读次数:
486
mysql编译安装 一、安装cmake https://cmake.org/download/ /**************************************************************************/ yum -y install wget wget ...
分类:
数据库 时间:
2016-12-09 08:31:16
阅读次数:
302
下载mycat文件到对应目录直接启动 /usr/local/mycat/bin/mycat start netstat -na|grep 8066 ps -ef|grep mycat chown -R mycat . chgrp -R mycat . groupadd mycat adduser - ...
分类:
其他好文 时间:
2016-12-09 08:18:06
阅读次数:
107
第一步:先下载 安装虚拟机! 链接: http://pan.baidu.com/s/1nuGLwsL 密码: 2qdy 第二步:导入镜像文件! 链接: http://pan.baidu.com/s/1nuGLwsL 密码: 2qdy linux 命令大全: arch 显示机器的处理器架构(1) un ...
分类:
系统相关 时间:
2016-12-08 21:18:34
阅读次数:
230
用户的创建、修改、删除 一、用户创建 useradd usermod userdel useradd:创建用户:create a new user or update default new user information useradd [options]… LOGIN -u,–uid:指定新用 ...
分类:
系统相关 时间:
2016-12-08 17:56:57
阅读次数:
249