First, add sudo permissions1.su-Switch to root, need Rootmim2. Modify the/etc/sudoers permissions chmod 644/etc/sudoers3.vi/etc/sudoersAdd your own user name password at root all= (all), asOftenlin all= (All) allSecond, modify the host name:Vi/etc/sysconfig/networkNetworking=yesNetworking_ipv6=noHostname=storm-masterVi/etc/hostsAdd the 127.0.0.1 Localhost.localdomain back192.168.1.40 Storm-masterthird, modify the static IP address, host name, Gateway1. Modify the static IP addressVi/etc/sysconfi
1. The base image of this image is: https://www.cnblogs.com/JoeyWong/p/9173265.html2. Put the packaged project files in a directory similar to Dockerfile3, Dockerfile as follows:# Base OS image fromCentos:jdk8MaintainerJoey LABELDescription= "This image is Javaweb images." Version= "1.0"#java WebRUNmkdir/home/data# uploading project files locally to the mirrorADDjavaweb-package.zip/home/data# unzip the project and delete the extra files after decompressionRUNunzip/home/data/javaweb-package.zip-d
It is important to note when Ubuntu adds a startup entry for an X-based application:The wrong approach:
--------------------------
#!/bin/sh
/usr/bin/gtktest (plus background run)
--------------------------
So the program is not running after the system starts up.The right approach:
---------------------------
#!/bin/sh
Export display=:0.0 (DISPLAY settings are determined by specific circumstances)
/usr/bin/gtktest (plu
delay.The user can press and hold the SHIFT key at startup to force the menu to be displayed.During startup, the system checks the SHIFT key state. If the key state is not recognized, a short delay will allow the user to display the menu by pressing the ESC key.2.grub_hidden_timeout_quiet=trueTrue does not display a countdown. The screen will be blank.False when configured in Grub_hidden_timeout, there will be a countdown timer on the blank screen.3.grub_timeout=10This command will conform to t
Once the computer has been used for a long time, it will become slow, we will also be uncertain when the system to clean up the optimization or uninstall the less commonly used software programs, of course, affect the speed of the system has many factors, such as system services have a direct relationship, and many system services are redundant, but will occupy the system memory resource space, So it is necessary to delete some useless system services, so how can the operating system be complete
What are the common service items under XP system
Specifically as follows:
Alerter----the wrong alarm.
Application Layer Gateway Service----to a third party network share/firewall support services, some firewall/network sharing software needs. Consumes approximately 1.5MB of RAM.
Application management----for setting, publishing, and deleting software services.
Automatic Updates----Windows Automatic Update, you can consider shutting down, but t
How does Excel use conditional formatting to filter out 10 items with the lowest value?
1. Open Excel file, example, figure
2. Select c3:c29 cell; for example, figure
3, click the Menu "Start", "Conditional format", "Project selection Rules";
4, click the "Value of the smallest 10";
5, jump out of the "10 Minimum" dialog box, select the value of "10", "reddish fill color deep red text", click "OK"
This article illustrates the method of real time statistical amount of a JavaScript implementation click on a list of items. Share to everyone for your reference. The implementation methods are as follows: ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66-67
The wants this article to h
Computer software installed more, you will find the right key menu items too much, a lot of content is we do not need, then how to clean it, this tutorial for you to introduce cleaning methods, just three steps can be easily done.
Set up in organization-folder and search options
Folder Options select View Tab
In the Folder Options dialog box, select the View tab and set Show hidden files, folders, and drives.
Easily clean up i
There is a situation: Nginx or httpd service itself is running normally, but the Web page hangs, similar to the Web page is black, or 40X ... , you can use Zabbix Web page access is also monitored, the first time to know the Web crash information and do the corresponding processing.Monitored host test page:[Email protected] ~]# Curl--head http://10.0.0.198:8080HTTP/1.1 content-type:text/html;charset= utf-8transfer-encoding:chunkeddate:wed, Mar 2018 22:00:07 GMT The Zabbix-server end operation is
Go to the local folder you want to upload, right-click Git Bash here, and then follow these steps:1. On the command line, enter "Git init" to add the test folder to git management;2. Enter "git Add." (Don't miss out ".") ) to add all the contents of the test folder to Git.3. Enter "Git commit-m" first commit "" ("Git commit-m" commit message ")4. Enter "Git remote Add origin https://github.com/shench5612390/Test.git" (Git remote add origin your own HTTPS address) to connect to your Guthub reposi
Tags: sql time date Timestampdiff MySQLFor a table of the following testtable, if you want to query a date that is 30 years from nowYou should use the following SQL statement:SELECT * from TestTable
where
Timestampdiff (Year,date,now ()) This method, even if the date field is a varchar type, can be queried successfully.Timestampdiff function, the first field is a unit, can be changed to second,day,month, etc.and the following query method, considering that the 1985 difference from the present 30
Function Example $ (' YourContainer '). Quicksand (' Yourelement ', { duration:800, easing:swing },function () { //do something});//or modify the relevant properties directly in the Quicksand.js source file. There is a notable pit, GitHub on the instructions said jquery.easing this plug-in is optional (the main filter filter animation display support), but I tried the next if not add this plugin to the project is not effective, so if not run remember to add this ( jquery.easing) Ef
The Splice method in 1:jsSplice (Index,len,[item]) Comment: The method changes the original array.The splice has 3 parameters, which can also be used to replace/delete/Add one or more values within an arrayIndex: Array start subscript len: replace/Delete length item: Replace value, delete action if item is emptysuch as: arr = [' A ', ' B ', ' C ', ' d ']Delete----item is not setArr.splice (//[' A ', ' C ', ' d ') deletes a value starting from subscript 1, length 1, Len set 1, and if 0, the array
steps to put an elephant in the freezer.1. Open the refrigeratorIntroduce GIT branch view branching State git branch + name Create branch name git checkout + branch name switch to specified branchChenjiadembp:questionnaire chenjia$ git Branch* MasterChenjiadembp:questionnaire chenjia$ git branch CCCChenjiadembp:questionnaire chenjia$ git BranchCcc* MasterChenjiadembp:questionnaire chenjia$ git checkout CCCSwitched to branch ' CCC 'Chenjiadembp:questionnaire chenjia$ git Branch* CCCMaster2: Put
Make a thing todayThe effect is as follows:The background has been saved 006 This SN code, now need to find this person (Yang Xiaoding), and then as the default value, displayed in the manifest insideJust call the Add method and add the object to it.The interface structure is as follows{"Status":1," msg": "","Data":[{"id":634," Code":"USN090504000006","name":"Yang Xiaoding"}]}Reference Code$ (' #recipients '). manifest (' Add ', { ' Lindsay Weir ', ' [email protected] '});Parameters:
1. The controller obtains the data, constructs the SelectList, uses the ViewData to transmit the value to the viewGet all department names *********//listBuild selectlist*********//SelectList name = new SelectList (names);viewdata["names"] = name;return View ();2. Add the following code to the view:Adding data items to Html.dropdownlistfor () in MVC
The Spring boot application loads the configuration file from the following path by default:
In the config directory under the current directory
In the current directory
In the Config directory under Classpath
In the Classpath directory
Spring Boot Log configuration:
Only one of Logging.file and Logging.path will work.
Logging.file and Logging.path are only used in the default log configuration and do not work in a custom log configuration file
Spring-boot Configurati
VS2005 always keep records of recently opened items and files, and even delete it without deleting it,-_-!Here are some ways to delete:
The first one: Create a bat file, then double-click to clear, the built-in code is as follows:
Copy Code code as follows:
@echo off
@REG Delete hkcu/software/microsoft/visualstudio/8.0/filemrulist/va/f
@REG Delete hkcu/software/microsoft/visualstudio/8.0/projectmrulist/va/f
The second kind: Manual
This article describes the jquery implementation click to expand the menu item (telescopic navigation) effect. Share to everyone for your reference. Specifically as follows:
This shows a multilevel navigation bar effect based on the jquery build, vertical arrangement, the style is very concise, click on the mouse to expand the menu level two items, click again to close, usually only show a level menu, level Two menu is hidden does not show, code conc
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.