/etc/init.d/networking restart #这种方式必须有/etc/network/interface文件ifconfig eth0 down #直接重启网卡ifconfig eth0 up
分类:
系统相关 时间:
2015-01-16 22:17:51
阅读次数:
265
当启动Android Studio时,如果弹出adb not responding. you can wait more,or kill "adb.exe" process manually and click 'Restart',说明ADB响应失败,此时点击wait more就会不断弹出这个对话框,点击Restart也无济于事。
解决方法:
1.打开cmd,输入...
分类:
移动开发 时间:
2015-01-16 19:16:02
阅读次数:
151
1. 通过拿到当前的进程 id ,调用 shell 命令,杀死进程。
int pid = android.os.Process.myPid();
String command = "kill -9 "+ Process.myPid();
try {
...
分类:
移动开发 时间:
2015-01-16 10:06:20
阅读次数:
180
linux防火墙常用命令1、永久性生效,重启后不会复原开启:chkconfigiptables on关闭:chkconfigiptables off2、即时生效,重启后复原重启防火墙方式一:/etc/init.d/iptables restart方式二:service iptables restar...
分类:
系统相关 时间:
2015-01-16 10:02:01
阅读次数:
200
更多请支持:http://www.webyang.net/Html/web/article_134.html
最近nginx经常502,解决502最好的办法就是重启php-fpm。
手动去重启还是比较麻烦的事情,最好的就是扔到shell里去。
vim restart-php-fpm.sh
#!/bin/sh
SERVICE=\'php-fpm\'
#if ps ax | grep -v...
分类:
Web程序 时间:
2015-01-15 23:47:39
阅读次数:
178
重启策略:使用在Docker run的时候使用--restart参数来设置。no - container不重启on-failure - container推出状态非0时重启always - 始终重启https://docs.docker.com/reference/commandline/cli/#...
分类:
其他好文 时间:
2015-01-15 10:52:10
阅读次数:
161
1. Enter the command: sudo gedit /etc/X11/Xmodmapto create /etc/X1ll/Xmodmap as root.2. Add the line: keycode 237 = XF86VendorHome Save.3. Restart the...
分类:
系统相关 时间:
2015-01-15 01:43:17
阅读次数:
234
*1,The connection to adb is down, and a severe error has occured.[2015-01-14 10:18:07 - wpt] You must restart adb and Eclipse.[2015-01-14 10:18:07 - w...
分类:
数据库 时间:
2015-01-14 12:43:07
阅读次数:
192
1.查看SSH状态:
service sshd status
查看ssh是否已经启动以及一些状态信息
2.启动SSH服务:
systemctl restart sshd.service
ps:fedora下的一些基本服务都是通过systemctl restart/stop xxx.service操作来控制的,例如apache的服务器:httpd.service、防火墙服务fi...
分类:
系统相关 时间:
2015-01-14 00:57:35
阅读次数:
197
一:首先熟悉几个命令which php ---> which是通过 PATH环境变量到该路径内查找可执行文件,所以基本的功能是寻找可执行文件whereis php ----> 将和php文件相关的文件都查找出来service php-fpm/nginx/mysqld restart 重启服务二:找到...
分类:
系统相关 时间:
2015-01-13 23:13:10
阅读次数:
206