1. PrefaceWe originally used LNMP to configure a Linux + nginx + mysql + PHP + Apache operating environment.The MySQL version information we use here is: 5.5.42In the foreign key operation, we know that the default MyISAM is not supported. Need to use InnoDB.2. Turn on the InnoDB engineOnline, MySQL 5.6 default engine has become InnoDB, but the previous use of MyISAM as the default engine.show engines;It can be found that there is a INNODB field, but support is no, indicating the need to configu
$ php composer.phar install loading composer Repositories with package informationinstalling dependencies (including require -dev) from lock file warning:the lock file is date with the latest changes in
Composer.json. Getting outdated dependencies. Run update to update them. Your requirements could not being resolved to an installable set of packages. Problem 1 -The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or
Recently engaged in a VPS, with Putty landing every time to enter the root account password, more trouble, so the internet to find the SSH certificate method.In fact, this should be the Putty recommended authentication method.1. Generate the key using the Putty SSH key generation tool Puttygen.exe.Generated key type and number of bits by default, SSH-2 rsa,1024 bitSave the private key to local, you will be prompted to save the private key to set a password, no password more convenient.2. Configu
Today, when testing the PS script, it occurred to me that the script should be executed automatically every day, because before having done bat's experience, I thought, this is not simple, directlyDo you want to create a task in a scheduled task in Windows? So it was a test, and it turned out to be tragic, the PS1 suffix script cannot be executed directly in the scheduled taskWell, only to find the mother of the horse, so find this method, their own record1: My side wrote a simple script to get
@EnableXXX: Can be used to replace some configuration in the XML configuration, the annotated class, where the method is @bean labeled, generally used to return and enablexxx XXX related bean,bean generally have XXX related annotationsAt the same time, more advanced, spring generally has a xxxconfigurer interface, in the annotated class @enablexxx, implement the interface, rewrite interface Chinese law (Xxxregistrar xxxregistror), can achieve more powerful registration functionSpring Annotations
Code by Shaoyongyangpackage mainimport ("FMT" "Time") Func say (s string) {Fmt.Println (s)}func main () {go say ("Who is?") Go say ("Who is You?1") fmt. PRINTLN (2) time. Sleep (1E9)}Well, I've been thinking about why there is no output in the Say method, and after a lot of data is found, it is because the program has finished running and the thread that started is still running. Add the thread sleep time to the last face.Enable a thread just go say ("See I am New thread"), just use the GO keywo
mode (about permissive mode is described below)If you want to resume running SELinux, you can run1This command will set SELinux to enforcing mode.2. Permanently set SELinux to permissive modeHere you need to tell the difference between the permissive and enforcing modes. SELinux has three modes: enforcing, Permissive and Disable.Enforcing mode is the policy that is set by SELinux, and all rules that violate policy will be rejected by SELinux.The difference between permissive and enforcing is th
Powershell Ise in the default state there is a downside where some smart hints about SharePoint are not displayed, such as when you write a "get-" option followed by some objects that do not have an SP start. So I found a solution.First Open PowerShell Ise and copy the code below to Ise1 if(! (Test-path$profile )) 2 { 3New-item-type File-path$profile- Force4 } 5 6 7 $cmd=if((Get-pssnapin | Where-object {$_. Name-eq "Microsoft.SharePoint.PowerShell"})-eq $null) 8 { 9Add-pssnapin"Microsoft.ShareP
1. first through the physical terminal into Linux, manually check SSH discovery is not running/ETC/INIT.D/SSHD statusSSHD is stoppedManually start the service and discover that report permissions are incorrect./etc/init.d/sshd startStarting SSHD:/VAR/EMPTY/SSHD must is owned by root and not group or world-writable.[FAILED]Use the RPM-V command to check that the package to SSH is OK, but the owner of a directory is a master error.Rpm-v Openssh-serverS.5 ... c/etc/ssh/sshd_config..... U../var/empt
from copy import deepcopyfrom str import basestringdef enserializable(model): """ 本函数用于将对象可序列化,且返回的字典都是新的(deepcopy) """ if isinstance(model, dict): model = deepcopy(model) to_pop = [] for k in model: # 过滤 if isinstance(k, basestring) and (k.startswith(‘_‘) or k.isupper()): to_pop.append(k) continue # 递归 else: model[k] = enserializable(model[k]) for k in to_pop:
The Sublime is my most loving editor,but are not very familiar with it.Here,i'll tell what to install the package controllManual InstallationStep 1:download the file from follow linkHttps://packagecontrol.io/Package%20Control.sublime-packageStep 2:move Package to the Specify folderPreferences---> Browse package---> Open the Packages and return to the parent directory---> enter installed Package '--->mv control.sublime-package in itRestart Sublime;Step 3:install GBK Encoding SupportUse ' command+
specifies the name of a global resource file. The second parameter is used for the internationalization of the information inside the code, otherwise the process of delivery will appear garbled.Loginresource_en_us.propertiesLogin.title=english PageLogin.welcome=welcome to login!Login.username=usernameLogin.password=passwordLogin.success=login successLogin.submit=submitLoginresource_zh_cn.propertieslogin.title=\u4e2d\u6587\u9875\u9762login.welcome=\u6b22\u8fce\u767b\u9646Login.username=\u767b\u5
Win7 Quick Enable (disable) method of searching for traces
First in the System "Start" menu, click the "Run" command, switch to the System Run dialog box, enter the "gpedit.msc" command, click the "OK" button, pop-up System Group Policy console window.
In the list on the left side of the console window, jump to local Computer policy, user Configuration, Administrative Templates, Windows components, Windows Explorer node, and find the "Turn
CentOS does not enable sudo by default, and you can log on to the server directly as a super administrator. Ubuntu is doing a good job in this area, and it is recommended that sudo be enabled in order to be safe and reduce the damage caused by misoperation.
1. Add sudo usersExecute Visudo command to find:
Root all= (All)
Add the following:
CentOS all= (All)
2, prohibit the root user loginEdit/etc/ssh/sshd_configWill
Permitrootlogin Yes
To
3D Studio Max is often referred to as 3DS max[1] or MAX, a three-dimensional animation rendering and production software based on PC system developed by the discreet Company (later merged by the Autodesk Company). Widely used in film and television, games, auxiliary teaching and architectural design, and so on, has a powerful function of a three-dimensional animation rendering and production software. Some Win7 users will be installed on their own computer 3dmax, although the installation was su
In today's computer system, the performance of the hard drive has become the biggest bottleneck affecting the performance of the machine. In the WINDOWS7 system with high requirements for accessories, the hard disk naturally becomes the object that needs to be optimized, and by turning on the AHCI mode of the hard drive, it can improve the performance of the hard disk to some extent. Well, look at the win7 of the little weave.
In the normal case, the hard drive defaults to the native IDE mode i
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.