It is necessary to install the latest version of Wamp server first!Configure the path to the default www directory (optional): The following is an example of changing to D:\site. Open wamp\scripts\config.inc.phpLine 47th, $wwwDir = $c _installdir. '/www '; Modified to: $wwwDir = ' d:/site ';Configure the Apache root directory : C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf->1. DocumentRoot, for example: DocumentRoot "D:/mzwnew"; 2.To Configure a vir
Sometimes we need to look at the network card traffic on the server in real time, here I write a shell script. The script uses a while true "dead loop", every 10s from "/proc/net/dev" to take a value and calculates the average bandwidth within 10s based on the difference within 10s; Press CTRL + C to stop execution. Scripts are compatible with CENTOS6 and 7, the scripts are not too complex, and the annotations in the script are more nuanced, so I don'
A small problem occurs when MVC is connected to the SQL Server database.
As a website developer, using asp.net to develop a website is inconvenient to add function modules, so I started to learn about the mvc framework.
Today is my first day of learning the mvc framework. The first step is to connect EF to the database (SQL Server2012 database). Below I use pictures and text to describe my process.
1. Creat
Note:
1. To save the hello. js program file as a UTF-8 hello. js file, use notepad.
2. Chinese encoding must be supported in the output webpage.
Res. write ('
Now we use node. js to create a small www server.
Console. log ('hello') console. log ('Hello % s-> % d', 'jeapedu', 1941847311) var http = require ('http'); http. createServer (function (req, res) {res. writeHead (200, {'content-type': '
One, the Oracle 11g database download, installation:Download:Then, based on this hyperlink build your own user, database.Http://wenku.baidu.com/view/caa21c1a650e52ea551898e2.htmlSecond, Navicat Premium connect Oracle1. Review the Tnsnames.ora file in the installation directory (F:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN).2, the connection, the first configuration option under the Oci file, download:Associated with the time,:OCI directory: D:\tools\instantclient-basic-nt-12.1.0.2.
Tags: It's col one is you parameter ROM data where preI am in the development of a little bit of knowledge to continue to update here ~1.where conditions change frequentlywhere userid= ' 1 ' Here's the UserID, its value is often in change, sometimes to check 2, sometimes to check 3, sometimes to check all the people! Here define a function to pass parameters, check all the people here need to make an if branch to judge, but, do not need ~ ~ Good way toSelect from table Where userid="+userid+"Th
Tags: style blog http color io ar data art????Database encryption:http://blog.csdn.net/u012992506/article/details/25283035?Create Master Key Encryption by Password=' [email protected] ' ?Backup Master Key to file=' D:\smk.bak ' Encryption by Password=' [email protected] ' ???Open Master Key decryption by Password=' [email protected] ' ??CREATE CERTIFICATE Backupcertificater? with SUBJECT = ' Backup encryption Certificate '; ?GO??BACKUP DATABASE Test to DISK =' D:\Test_Encrypted.bak 'with
Tags: style blog color io data div problem code log
The day before yesterday's project, just took over, for the module is not very familiar with, there is a module, involving 4 tables, of which the main table there are two, as long as the clear on all return to the "peace".
Module requirements: The contents of the two tables to query out, the results are connected together. Master said finished, feel no problem, I looked at the database table design, after reading, found that the two tab
DECLARE @CurrentDate datetime=getdate ();SelectDATEADD (dd,0, DATEDIFF (dd,0, @CurrentDate)) as current date,DATEADD (Dd,-1, DATEDIFF (dd,0, @CurrentDate)) as yesterday,DATEADD (Mm,datediff (mm,0, @CurrentDate), 0) as the first day of this month,DATEADD (Day,-1,dateadd (Mm,datediff (mm,0, @CurrentDate) +1,0) Last day of this month,DATEADD (Mm,datediff (Mm,0,dateadd (month,-1, @CurrentDate)), 0) as the first day of last month,DATEADD (D,-1,dateadd (M,-1,dateadd (mm, DATEDIFF (m,0, @CurrentDate) +
Tags: des blog http io os using Java ar StrongNginx 0.7.x + PHP 5.2.6 (FastCGI) + MySQL 5.1 in 128M Small memory VPS Server Configuration Optimization Large |Medium | Small [2008-10-28 16:55 | by Zhang Banquet] [Article Zhang Banquet this version: v1.0 last modified: 2008.10.28 reproduced Please specify the original link: http://blog.zyan.cc/post/375/]The VPS (fu
same time need to use the script. In order to write a script to determine whether multiple hosts can be reached, it is only needed to sort out the above ideas and use the Linux basic commands flexibly. Of course, if the target machine is very numerous, it is recommended to use ansible or saltstack, or simply write a Python multi-process script to judge.
The following is a list of the scripts I wrote earlier based on the ping and Telnet tools, and the approximate principle is similar to the abov
Recently built a small Git server, because the online data mixed, let me really stepped on a lot of landmines. Make a record in case of a rainy future.What do you need to know?If you want to build a server for only dozens of people to use, and no dedicated network management services, remember, must be simple, simple, only need to followI do the following steps t
Objective:Whenever we encounter a problem scratching, a face of what, perhaps look at the log immediately suddenly enlightened, so, an easy-to-use log server is still very important. Let's not introduce elk, the log analysis system for the boom-and-blast day. Today we'll build a small log server. Elk we'll say it again ~Body:When we configure a service, start an
single batch, otherwise it will prompt us: The number of row value expressions in the INSERT statement exceeds the maximum allowed Number of the row values.Test code:1 class Program2 {3 Static voidMain (string[] args)4 {5 for(inti =0; I 3; i++)6 {7 varobj =Newdatainerttest ();8 varT1 = obj. Loopinsert (100000);9 vart2 = obj. Batchinsert (100000);Ten OneConsole.WriteLine ("Loopinsert: {0}", T1); ACo
object and return a timestamp to tell the browser when the view was updated. When the aggregation key contains null, it is also represented as a null line in the result. http://www.cnblogs.com/qxnrtijw/ This code has become customary: when you execute a method by using the reflection method, you must check the accessible property before invoke. This is a good habit, and it is true, but attributes are not used to determine whether they can be accessed. Although there are many types of games, the
matches the keywords searched in the query statement with the keywords collected in the full-text catalog, returning the data rows in the data table where the keyword matches successfully. However, this article can be seen to match the search for full-text catalog keywords, not the same as the LIKE keyword 100% return to meet the criteria of the data, if the full-text catalog is not enough or incorrect collection of keywords, full-text index matching will fail, resulting in incorrect query resu
Tags: style blog color for AR data div log spTable operation Syntax DifferencesWhen building a table, only the self-increment syntax is different.The primary key (PRIMARY key), the foreign key (FOREIGN key), non-null (NOT NULL), unique (unique), and default (defaults) are the same, and the self-increment implementation is different.The following is a list of the 3 common database-building and initialization test statements:CREATE TABLECountry (Idint PRIMARY KEY, Namevarchar( -));CREATE TABLEPers
Label:PIVOT syntax. SELECT [First pivot column] as [Second pivot column] as ... [Last Pivot column] as From ( Aliases for as PIVOT ( For [ In ([First pivot column], [Second pivot column], ... [last pivot column]) ) as SELECT * FROM StudentPivot (max (score) for project in ([Language],[Math],[Foreign Language]) as Pvt SQL Server row to column small case
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.