rpm -qa | grep ssh //查看ssh有没有安装
cat /etc/redhat-release //查看Centos的版本
vi /etc/ssh/sshd_config //修改ssh的配置文件
找到port 22改成你想改的端口就行了.
service sshd restart //重新ssh服务
如果你开始了iptables, 记得在iptable...
分类:
其他好文 时间:
2015-06-21 02:07:40
阅读次数:
159
克隆虚拟机的时候或其他情况出现以下问题(命令service network restart):Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [...
分类:
其他好文 时间:
2015-06-20 18:22:25
阅读次数:
146
yum install samba samba-client samba-swatcp -p /etc/samba/smb.conf /etc/samba/smb.conf.orig/bin/systemctl restart smb.service vim smb.confuseradd alic...
分类:
其他好文 时间:
2015-06-20 06:48:18
阅读次数:
184
安装sendmailyum install -y sendmail*修改防火墙设置,添加25端口到防火墙vi /etc/sysconfig/iptables重启 iptables、sendmail 服务service iptables restartservice sendmail restart测...
分类:
移动开发 时间:
2015-06-19 22:58:31
阅读次数:
211
常用命令记录: vim /etc/mysql-mmm/mmm_common.conf vim /var/log/mysql-mmm/mmm_mond.log monitor: service mysql-mmm-monitor start/stop/restart agent: service mysql-mmm-agent start/stop/restart mysql...
分类:
数据库 时间:
2015-06-19 15:27:23
阅读次数:
198
当我们忘记数据库密码时,我们可以通过如下来修改!编辑配置文件(提前最好进行备份)然后重启服务systemctl restart mariadb或者systemctl restart mysql(以上均针对redhat或者centos7)接下来就可以进行密码修改了再次重启服务(重启之前删除配置文件中添...
分类:
数据库 时间:
2015-06-18 18:49:41
阅读次数:
207
cron 是Linux的内置服务。有以下命令启动、查看、关闭这个服务。service cron start //启动服务
service cron stop //关闭服务
service cron restart //重启服务
service cron reload //重新载入配置
service cron status ...
分类:
系统相关 时间:
2015-06-18 17:26:17
阅读次数:
133
前几天用 openstack-Nova 创建虚拟机捣鼓了一下,结果今天重启以后
nova boot 创建虚拟机实例一直出错,创建出来的虚拟机状态 都是 error
查看 openstack 服务状态 发现原来是openstack-nova-computer 服务没有启动
用 systemctl service restart openstack-nova-computer.server...
分类:
其他好文 时间:
2015-06-18 15:23:42
阅读次数:
196
原文:You must restart adb and Eclipse多种情形分析与解决方案一:错误提示The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Ple...
分类:
数据库 时间:
2015-06-18 13:00:09
阅读次数:
160
今天遇到这个问题,如图所示:上网找了下,原来是电脑上的各种手机助手抢占了手机链接。http://blog.csdn.net/zhufuing/article/details/19398125说得很对。不过我的情况不是金山的手机助手问题,任务管理器中没有 tadb.exe 进程,而是金山毒霸的问题,退...
分类:
数据库 时间:
2015-06-18 10:58:50
阅读次数:
236