ps aux |grep mysqlkill所有列出的进程,然后重启service mysql start原因有可能是mysqld没启动;service mysqld start。持续出现此问题有可能是配置文件不对。修改/usr/my.cnf (一般是/etc/my.cnf)[mysqld] dat...
分类:
数据库 时间:
2015-04-24 15:51:55
阅读次数:
195
今天修改nginx的一个配置文件,却怎么都没效果,发现是启动nginx指定的配置文件不一样。 #ps aux|grep nginx root 17672 0.0 0.0 45856 2156 ? Ss Apr23 0:00 nginx: master process /usr/sbin/nginx ...
分类:
其他好文 时间:
2015-04-24 11:56:06
阅读次数:
141
首先结束mysql进程,利用ps aux | grep mysql命令得到进程ID号,kill ID号,结束进程其次,运行mysqld --skip-grant-tables然后,再开一个终端,输入mysql -u root mysql进去后,执行UPDATE user SET Password=P...
分类:
数据库 时间:
2015-04-21 12:51:41
阅读次数:
133
一、liunx 下1.查找指定目标项目(atf web工程)进程的pidps -aux | grep atfroot 3582 0.1 11.2 382228 190588 ? Sl 09:31 0:19 java -Datf -jar start.jar etc/jetty.xmlroot 221...
分类:
系统相关 时间:
2015-04-20 13:05:10
阅读次数:
270
linux系统-shell编程-几个shell脚本
一 灭掉用户 killuser.sh
#!/bin/sh
# The script to kill login user
user_name="$1"
/bin/ps aux | /bin/grep $user_name | /bin/awk `{ print $2 }` > /tmp/temp.pid
kill_i...
分类:
系统相关 时间:
2015-04-19 08:55:54
阅读次数:
166
结束僵尸进程命令:ps-A-ostat,ppid,pid,cmd|grep-e‘^[Zz]‘
分类:
系统相关 时间:
2015-04-14 14:50:17
阅读次数:
256
1. 在linux下,查看一个运行中的程序, 占用了多少内存, 一般的命令有 (1). ps aux: 其中 VSZ(或VSS)列 表示,程序占用了多少虚拟内存。 RSS列 表示, 程序占用了多少物理内存。 虚拟内存可以不用考虑,它并不占用实际物理内存。 (2). top 命令也可...
分类:
系统相关 时间:
2015-04-07 15:15:43
阅读次数:
173
1、查看服务是否已经运行用ps -aux | grep cron2、新增调度任务 新增调度任务可用两种方法:1)、在命令行输入: crontab -e 然后添加相应的任务,wq存盘退出。2)、直接编辑/etc/crontab 文件,即vi /etc/crontab,添加相应的任务。3、任务调度设置文...
分类:
系统相关 时间:
2015-04-07 15:13:00
阅读次数:
161
先看table.insert调用的C函数:
static int tinsert (lua_State *L) {
int e = aux_getn(L, 1) + 1; /* first empty element */
int pos; /* where to insert new element */
switch (lua_gettop(L)) {
case 2:...
分类:
其他好文 时间:
2015-04-06 21:52:42
阅读次数:
213
Linux$ps-aux|grep8995windowsnetstat-ano|findstr"8983"