1./home/lvtest/test/test.py from Import Datetimenow=DateTime.Now () F=open ('test.log','a ' ) f.write ('% now ') f.close ()2. Edit/etc/rc.local with adding codes below:Cd/home/lvtest/testSu lvtest-c "python/home/lvtest/test/test.py"Exit 0 #? If it is necessary3. Make your/etc/rc.local executable in case it's not already executable by sudo chown root /etc/rc.local sudo chmod 755 /etc/rc.local4. Check everything works fine by executing sudo /etc/rc.local startAutorun a python script after
This afternoon, after a file server restarts. It is not possible to FTP to this file server from other hosts. The check was found to be a problem with SELinux. Colleague to change the parameters in/etc/selinux/config selinuxtype=targeted to Disabled, restart the host is unsuccessful, error message:Unable to load SELinux Policy. Machine was in enforcing Mode. Halting now.Kenel panic-not syncing:attempted to kill init!Degree Niang, found a lot of Freemasonry, such as: http://hehaibo.iteye.com/blog
Under the Linux system, reboot Tomcat to operate with commands!First, go to the bin directory under TomcatCd/usr/local/tomcat/binUsing the Tomcat Close command./shutdown.shTo see if Tomcat is shutting downPs-ef|grep JavaIf the following similar information is displayed, Tomcat is not turned offRoot 7010 1 0 Apr19? 00:30:13/usr/local/java/bin/java-djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties- Djava.awt.headl
Win7 Install SQL Server2008 prompt to reboot a computer failed solution
1, at the same time press the WIN7 flagship computer keyboard Win+r shortcut to open the computer's running window, in the Open Run window, enter the regedit and click Return, so you can open the Registry Editor window
2. In the Open Registry Editor window, click to expand Hkey_local_machinesoftwaremicrosoftmicrosoft SQL Server in the left menu;
3, then
WINDOWS SERVER 2003 has a command called Shutdown.exe, and its specific parameters are as follows:
Usage: Shutdown [-i |-L | s |-r |-a] [-f] [-M computername] [-t XX] [-c ' comment '] [D-P:XX:YY]
-I display GUI interface, must be the first option
-L logoff (cannot be used with option-m)
-S shutdown this computer
-R shutdown and restart this computer
-A abort system shutdown
-M ComputerName remote computer shutdown/reboot/Abort
-T XX setting t
Yesterday try to install UBUNTU14 under WINDOWS10, I use EasyBCD method for hard disk installation, but set up after the discovery is always prompted to find the file, After checking that menu.lst settings are completely correct, (hd0,n) is not wrong, but it is prompt me file path or cannot find the file.After several twists and turns, finally found the problem. After a failure, I entered the grub edit mode, found that the two lines of the Menu.lst set, was read by Grub as three lines, that is,
The author is now self-study FreeBSD system, has been successfully installed in the computer VM virtual FreeBSD system, but many are not very familiar with, even the most basic FreeBSD system shutdown or restart command is not known, Finally the search for a moment to know that he centos system somewhat similar.
Demo System Considerations
Demo System: FreeBSD9.1
Note: FreeBSD shutdown or restart command, only on the local use of root user login to perform successfully, while ordinary users in
You may have noticed a problem when you used Windows 8, when there is an update patch when the hint is not obvious (only in the login screen text prompts), the installation of important updates will not pop-up prompts for immediate restart, but in the login screen tells you will be restarted in 3 days to complete the update installation. This less obvious hint often leads to a lag in the patch installation, perhaps when you notice a text hint, either the patch has been released for several days,
Windows7 shutdown, reboot, standby, hibernate command
Windows7 down some shutdown, restart, standby, Hibernate command, through the AutoHotkey can achieve fast shutdown and other operations.
; Shut down immediately, no prompt, delay.
Shutdown-p
; Restart now
Shutdown-r-T 00
; Go to sleep and go to standby if you have closed hibernation
rundll32.exe Powrprof.dll,setsuspendstate
Windows7 Turn off the hibernate feature and mixed sleep will not be
First, check the virtual memory settings
Open (System panel) under the WIN8 system, and then select (set off) and (virtual memory) on the system panel. After you turn off virtual memory, turn the computer back on and check to see if the computer will still have a reboot failure.
Check virtual memory settings
Second, turn off the Quick Start function
If your computer's virtual memory is the default, you need to turn off the Quick Start featu
Environment: Ubuntu 10.10
Goal: Configure the load iptables rule when the NIC starts
The various operations found on the network:
Sh-c "Iptables-save >/etc/iptables.rules"
Vi/etc/network/interfaces
# # Add a command under the target card
# # pre-up Iptables-restore
However, it was found by test. These configurations will be lost after the reboot, and you will see this file header.
# This configuration the file is auto-generated.
# Warning:do
Microsoft's latest Win8.1 system is a constant problem, often have user installation and various types of use problems, and recently found a lot of upgrades Win8.1 users have a resource manager crash or restart the problem. In response to this problem, the computer Pepsi Network Small series of research and sorting out some of the online more feasible solutions, encounter such problems friends may wish to try, may be able to solve your problem.
Explorer Restart prompt
First, we nee
Normal internet for a period of time, the Internet Café router inexplicably off the line, shut down the router, wait a moment to open the network and normal. What to do if a router falls off the line and needs to reboot? The following small series provides you with a workaround.
The problem that causes the Internet bar router to drop continuously is many, need to pass the elimination method to carry on one by one investigation.
1. First of all, need
The workaround is as follows:
1, check the "DHCP Client" service is automatic state;
2, by registering and changing the IP address and DNS name to manage network configuration;
The path to the executable file is:
C:windowssystem32svchost.exe-k Netsvcs
This service is required by anyone using dsl/cable, ICS, and IPSEC to specify dynamic IP.
Startup method:
1, on the "My Computer" icon on the right to choose "Management" to find services and applications--select services--in the right windo
We know that the direct use of ASP is not enough to restart the server, then we need to make a component to implement the function, ASP through this component calls the system API, and then according to different restart and shutdown mode to operate!The following first said the production of COM, in VB, a new project, of course, is Aceivex DLL.
1) First modify the engineering properties, in the Project Properties window to change the project name to system, in the class Module window to change
A, the first press Ctrl+alt+del after 60 seconds and then invalid, after the execution of the N-multi-information collection operations will be the firewall deactivated, sshd service restart;
b, if still not connected to the server, then continue to let the engine room engineer Press Ctrl+alt+del machine will really restart.
The specific job steps are as follows:
1, first modify the current/etc/inittab file, and change the default reboot to execute/ro
Old Chiang has been accustomed to using the DEBIAN6, CentOS6 system environment, this morning when the operation of the deployment of an environment using the CENTOS7 version, and then the need to start the httpd services, the inertia of the use of service
httpd start command , but the "
/bin/systemctl start Httpd.service" problem is prompted. It appears that some of the operation commands have changed since the system changed.
Of course, for compatibility, the service command w
After the server has configured the network card information, use the command
Service Network restart
The following error message appears:
Job for Network.service failed. "Systemctl status Network.service ' and ' journalctl-xn ' for Deta
Check carefully for no mistakes.
Later found CENTOS7 need to connect network cable to restart the network card. So use
Ethtool-p eth0
The corresponding mesh will light up. Make sure the network cable is plugged in
Plug in the network cable to
1. Failure of the Computer configuration: Athlonxp 2000+, WD 80GB, Yu-zhan 512MB DDR 400, Shuo Tai Sl-p4m800pi-775rl
2. Computer malfunction Description: After starting the computer, the CPU fan rotation, the hard drive can start normally, but not self-test, the screen is not displayed, more than a few times the machine will return to normal, but after a few days or reboot will appear after the phenomenon, I replaced the power but can not solve the f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.