2015.8.30本机电脑C盘装有Windows系统,后来因需要安装了个Linux系统,发现默认启动顺序变为Linux了,因Windows使用比较多,需要将Windows设置为默认启动。实现方法如下:1.登入Linux系统2.输入cd/etc/boot(本人以root身份登入系统),找到该目录下的menu.lst3.输入vimenu.lst..
配置文件路径/etc/my.cnf核心配置#TheMySQLserver[mysqld]port=3306监听端口口socket=/tmp/mysql.sock监听的socketskip-locking跳过锁key_buffer_size=256M索引块缓冲区大小max_allowed_packet=1M允许最大包table_open_cache=256表示所有线程打开表的数量sort_buffer_size=1M排..
分类:
数据库 时间:
2015-08-30 17:49:40
阅读次数:
238
默认情况mysql没有密码mysql-uroot或者是mysql来登陆设置密码mysqladmin-urootpassword‘hd792310‘登陆命令mysql-uroot-phd792310如果密码忘记,可以初始化密码1.vim/etc/my.cnf在核心配置处,插入一条代码skip-grant不去授权,可以直接登陆2.重启mysql/etc/init.d/mysqldrestar..
分类:
数据库 时间:
2015-08-30 17:47:41
阅读次数:
241
1.在Centos5.5下搭建ftp服务器(1)安装vsftpd[root@localhosthome]#yuminstallvsftpd(2)完成安装后执行[root@xxzx/]#vi/etc/vsftpd/user_list将root注释掉:#root[root@xxzx/]#vi/etc/vsftpd/ftpusers将root注释掉:#root(3)设置ftp登录后所在的目录[root@xxzx/]#setsebool-Pftpd_..
分类:
系统相关 时间:
2015-08-30 17:46:10
阅读次数:
202
1DistributorID:LinuxMintDescription:LinuxMint17.2RafaelaRelease:17.2Codename:rafaela2sudowget-qhttps://www.virtualbox.org/download/oracle_vbox.asc-O-|sudoapt-keyadd-3sudovim/etc/apt/sources.listnewinsertdebhttp://download.virtualbox.org/virtualbox/debiantru..
分类:
系统相关 时间:
2015-08-30 17:45:44
阅读次数:
206
#实验环境Centos6.564位系统1、配置文件在/etc/pam.d/目录下2、使用ldd命令查看程序是否支持PAMldd`whichsshd`|grep-i"pam"3、以sshd服务为例:语法格式为:servicetypecontrolmodule-pathmodule-arguments<可以通过manpam.d查看详细信息>service:auth:主要是接受用户名..
分类:
其他好文 时间:
2015-08-30 17:45:12
阅读次数:
197
安装sshsudo apt-get install openssh-serversudo apt-get install openssh-client启动SSH服务sudo /etc/init.d/ssh restart安装git生成本地公钥ssh-keygen -C 'xxx@xxx.com' -...
分类:
系统相关 时间:
2015-08-30 17:16:16
阅读次数:
143
1、查看是否已安装mysql rpm?-qa?|?grep?-i?mysql 2、如果有,先卸载,没有直接跳到第3步 yum?remove?mysql?mysql-server?mysql-libs?compat-mysql51
rm?-rf?/var/lib/mysql
rm?/etc/my.cnf
查看是否...
分类:
数据库 时间:
2015-08-30 16:05:27
阅读次数:
201
如果依据 daemon 的启动与管理方式来区分,可以分为:
1、可独立启动的 stand alone ;
2、super daemon 来统一管理的服务。
daemon 相关的文件,以及某些重要的配置文件,基本上是放在这些地方:
/etc/init.d/* :启动脚本放置处
系统上几乎所有的服务启动脚本都放置在这里!事实上这是公认的目录,我们的 CentOS...
分类:
系统相关 时间:
2015-08-30 16:00:07
阅读次数:
228
启停onesql,总共四个参数{start|stop|restart|status},只要稍微改一下头部的三个文件路径,即可完成mysql单实例的启停。
[#9(zhouxx_vm(node3:192.168.56.103))#root@node3~]#service onesql5.6.26
Usage:sh /etc/init.d/onesql5.6.26 {start|stop|res...
分类:
数据库 时间:
2015-08-30 14:28:11
阅读次数:
305