shutdown

Ubuntu14 关机重启、版本、网络

时光总嘲笑我的痴心妄想 提交于 2019-12-05 13:47:04
关机、重启: 立即关机:halt、poweroff、shutdown -h now 延迟关机:shutdown -h 10 十分钟后关机 立即重启:reboot、shutdown -r now 延迟重启:shutdown -r 10 十分钟后重启、shutdown -r 20:35 定点重启 取消:shutdown -c Ubuntu14 版本查询 xzx@git:~$ lsb_release -a        LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息 No LSB modules are available. Distributor ID: Ubuntu       类别是ubuntu Description: Ubuntu 14.04.6 LTS  16年3月发布的稳定版本,LTS是Long Term Support:长时间支持版本,支持周期长达三至五年 Release: 14.04            发行版本号 Codename: trusty           ubuntu的代号名称 xzx@git:~$ uname -a 查看系统相关信息 Linux 内核名称git  主机名4.4.0-142-generic 内核发行号#168~14.04.1-Ubuntu SMP Sat Jan 19

How to shutdown machine from ASP.NET

岁酱吖の 提交于 2019-12-05 11:54:59
I have a machine running Windows Home Server v1 (WHS is based on Windows Server 2003 and is runningh IIS6) and on here I have a restful webservice running which I build in C# VS2008 (dotnet 3.5). From within the webservice I want to be able to; 1 Check that certain windows services are running; 2 Start certain windows services 3 Stop certain windows services 4 Reboot the machine 5 Shutdown the machine For 1-3 then I am using impersonation to elevate the ASPNET user to the local administrator (it is only me running this on a local secure network) and then "ServiceController" to control the

配置 DHCP

坚强是说给别人听的谎言 提交于 2019-12-05 11:14:58
配置 DHCP 步骤1 <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 [R1]interface GigabitEthernet 0/0/1 [R1-GigabitEthernet0/0/1]ip address 10.0.12.1 24 [R1-GigabitEthernet0/0/1]quit <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R3 [R3]interface GigabitEthernet 0/0/1 [R3-GigabitEthernet0/0/1]ip address 10.0.12.3 24 [R3-GigabitEthernet0/0/1]shutdown [R3-GigabitEthernet0/0/1]quit [R3]interface GigabitEthernet 0/0/2 [R3-GigabitEthernet0/0/2]ip address 10.0.23.3 24 <Quidway>system-view Enter system view, return user view with

How to stop an OSGI Application from command line

这一生的挚爱 提交于 2019-12-05 10:44:17
I do have a running osgi (equinox container) application. It will been started via a bash script. See felix gogo shell java -jar ... _osgi.jar -console 1234 & This all works pretty well and I also can stop it via telnet localhost 1234 <osgi>stop 0 But what I am looking for is how can I embed this into a bash script to stop the osgi application. I already tried this echo stop 0 | telnet localhost 1234 but this doesn't work. So if someone has idea how to put this in a bash script, please let me know. Neil Bartlett Telneting into the Gogo shell seems like an awfully fragile solution. Why not

Linux Shutdown with dbus-send

孤人 提交于 2019-12-05 10:39:10
I am writing a Java app to shutdown my Linux box remotely. The desktop app sits and waits for a command to be sent to it. I have tried using "shutdown -h" but this requires sudo privileges and is not an option. I then found a way to shutdown without sudo using the following dbus-send solution: dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown This works fine but I am trying to figure out, using dbus-send, if its possible to do a timed shutdown similar to "shutdown 3600" which would shut

Windows开关机、远程命令

你说的曾经没有我的故事 提交于 2019-12-05 10:20:06
一、打开运行框(Win+R键) - 输入 cmd 进入DOS环境。 - 输入 mstsc 进入 远程控制计算机 界面。 二、计算机 定时开关机 休眠 进入DOS环境,输入以下命令: 关机 shutdown -s -t 0 重启 shutdown -r -t 0 shutdown -s -t 3600 回车 // 3600秒=1小时,1个小时后 自动关机 shutdown -a 回车 // 取消定时关机 //更多命令: shutdown.exe -a 取消关机   shutdown.exe -s 马上关机   shutdown.exe -f 强行关闭应用程序   shutdown.exe -m \\计算机名 控制远程计算机   shutdown.exe -i 显示“远程关机”图形用户界面,但必须是Shutdown的第一个参数     shutdown.exe -l 注销当前用户   shutdown.exe -r 关机并重启   shutdown.exe -s -t 时间 设置关机倒计时   shutdown.exe -h 休眠 三、在 .bat 文件里面,输入相关命令。双击 后缀名为 .bat 文件, 即系统执行相关命令。 // 关机命令 start shutdown -s -t 3600 exit 如有错误,欢迎指正!!!共同学习,共同进步。 来源: oschina 链接:

Tomcat多实例及负载均衡

大城市里の小女人 提交于 2019-12-05 09:28:12
Tomcat多实例配置 ==================面试========== 一般在在公司中一个实例的内存为4-8个G ,一个实例最高有400个并发量 一般来说一台机器最多10个左右实例,普遍设置8个实例 并发量:同一个时间,用户最多有多少访问量 例子:要处理20000的并发量,需要几台机器 20000/400=50(个实例) 50/10=5(台)nginx调度器需要2台(一主一备) 数据库需要2台 (一主一备) 并且要保证机器的内存要有64G才能够搞定2万的并发量 所以要处理2万的并发量至少要10台服务器 ================================= Tomcat多实例配置 应用程序需要部署在服务器上时Tomcat软件的部署方式可以分为以下几种: 单实例单应用(webapps/a) ///只有一个Java进程,只提供一个页面(一个实例是一个进程) 单实例多应用(webapps/{a,b}) ///一个进程,多个页面 多实例单应用 ///多个进程跑一个服务页面 多实例多应用 /// 实例的概念可以先理解为一个Tomcat目录中的一个工作子目录 【1】单实例单应用:比较常用的一种方式,只需要把做好的war包丢在webapps 目录下,执行启动Tomcat的脚本就行了。 【2】单实例多应用有两个不同的Web项目的war包,还是只需要丢在webapps目录下

Why do I need to call a close() or shutdown() method?

a 夏天 提交于 2019-12-05 08:49:45
I'm new in Java with some background in C++ in my High School years. Now I'm trying to make something and I chose Java as the programming language. I've done my homework and look a lot about "destructors" for Java, finalize() method, and close() or shutdown() methods. But still I think I don't have the idea of how this should work (more info below of course) OK, the concrete question would be why do I need to call close() or shutdown() methods? In my particular case I'm working with a class that I didn't develop that handles a smart card reader, but I've seen that the case of file management,

Eclipse调用Tomcat出错

若如初见. 提交于 2019-12-05 07:01:47
错误提示:The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports. 原因是是装Tomcat的时候server shutdown port没有设置成8005,而是-1,所以导致eclipse调不起来。 shutdown端口的意思是The command string that must be received via a TCP/IP connection to the specified port number, in order to shut down Tomcat.(为了关闭Tomcat,必须通过与指定端口号的TCP / IP连接接收的命令字符串。) 更改shutdown端口为8005,进入Tomcat文件的conf文件夹的server.xml中,修改其中shutdown的端口 原因是是装Tomcat的时候server shutdown port没有设置成8005,而是-1,所以导致eclipse调不起来。 shutdown端口的意思是The command string that must be received via a TCP/IP connection to the

What exactly does “shutdown -y” do? [closed]

左心房为你撑大大i 提交于 2019-12-05 06:04:25
I tried some random parameters after the shutdown command in PowerShell 2.0 when I stumbled upon shutdown -y . All it seems to do is log out the user. if any other random letter is used (that isn't a valid parameter) nothing happens. For example: shutdown -b My question is: Does shutdown -y do anything special? I could not find any documentation about this. The Windows 2000 documentation states the following: /y: Use this switch to force a "yes" answer to all queries from the computer. So it looks like by using -y or /y with no other switches you are doing the default behaviour of shutdown.exe