1.创建用户文本文件[root@shnne ~]# vim /etc/vsftpd/vsftpd_virtualuser.txt[root@shnne ~]# cat /etc/vsftpd/vsftpd_virtualuser.txt#一行用户一行密码ftp123456vip1234562.生成数据库文件[root@shnne ~]# rpm -qf `which db_load`db4-utils-4.7.25-22.el6.x86_64[root@shnne ~]# d...
[root@localhost ~]# cat user.sh
#!/bin/bash
for i in `seq 1 20`
do
pw=`echo $[$RANDOM]|md5sum|cut -c 1-4`
useradd user$i
echo "u...
1、mysql帮助说明[root@shnne /]# mysql --help|grep dummy -U, --i-am-a-dummy Synonym for option --safe-updates, -U.i-am-a-dummy FALSE在mysql命令加上选项-U后,当发出没...
/
1384 次浏览/
数据库教程
1、关闭mysql服务[root@shnne ~]pkill mysql[root@shnne ~]ps -ef|grep mysql[root@shnne ~]mysql -uroot -S /data/3306/mysql.sock 2、使用--skip-grant-tables参数后台启动mysql,忽略授权验证直接登录 [root@shnne ~]mysqld_safe --defaults-file=/data/3306/my.cnf --ski...
/
1532 次浏览/
数据库教程
data.zip继之前cmake编译的mysqlhttps://www.shnne.com/post/170.html配置如下1.将data.zip上传到根目录,执行下面的命令unzip -o data.zip tree datachown -R mysql.mysql /datafind /data -type f -name "mysql"|xargs ls -l或find /data -type f -name "mysql" -...
/
1491 次浏览/
数据库教程
安装相关包1.cmake软件cd /home/shnne/tools/
tar xf cmake-2.8.8.tar.gz
cd cmake-2.8.8
./configure
gmake
gmake install
cd ../2.依赖包yum install ncurses-devel -y 3.开始安装mysql创建用户和组groupadd mysqluseradd mysql -s /s...
查看版本/application/apache/bin/apachectl -V/application/nginx/sbin/nginx -v/application/php/bin/php -vmysql直接登陆就可以看到查看编译的参数/application/nginx/sbin/nginx -V #用大V/application/apache/build/config.nicegrep CONFIGURE_LINE /application/mysql/b...
nginx相关优化参数1.隐藏nginx版本号在nginx.conf配置文件中,http,server,location段添加server_tokens off;2.想要彻底修改nginx错误返回页面在编译安装之前修改nginx.h文件sed -n '13,17p' src/core/nginx.h#define NGINX_VERSION "1.6.2" #将...
环境:三台内网IP为172.16.1.0/24段的主机B,C,D 一台A主机有双网卡,eth0配有可以上外网的IP 192.168.1.102,eth1配有跟B,C,D同一段内网的IP 172.16.1.102,不用配网关问题:如何让三台内网主机可以通过A主机来访问外网设置方法如下:1.将B,C,D的三台主机的网关配置为A的内网卡地址,也就是172.16.1.102,DNS要配置,不然不能上网2.在A主机上开启路由转发,永久设置如下 ...
ssh -p52113 shnne@192.168.1.103scp -P52113 /etc/hosts shnne@192.168.1.103:/tmpsftp -oPort=52113 shnne@192.168.1.103ssh-copy-id -i id_dsa.pub "-P 52113 shnne@192.168.1.103"rsync -avz -e ‘ssh -p 22’ /etc/hosts 192.168.1.103:~mysql -...