The following actions need to be resolved:There are multiple shtml files with connection addresses inside.
Http://www.jb51.net/fgdf/222/1234.shtml
Http://www.jb51.net/tyty/333/456456.shtml
Http://www.jb51.net/tyry/789/fsdfsfs.shtml
Now I'm going to put these. shtml File connection address add a directory name Inc is becoming
Http://www.jb51.net/fgdf/222/inc/1234.shtml
Http://www.jb51.net/tyty/333/inc/456456.shtml
workaround: Generally, editplus and
directory, file operation details-php
Write a file and read the file in the same way, first see if you can write: $file = ' dirlist.php ';if (is_writable ($file) = = False) {Die ("I am chicken feathers, I cannot");}?> If you can write it, you can use the File_put_contents function to write: $file = ' dirlist.php ';if (is_writable ($file) = = False) {Die (' I'm chicken feathers, I can't ');}$dat
Take. SVN example
For example, if I want to delete all the. SVN directories under/data/web/, then execute the following command.
The code is as follows
Copy Code
Cd/data/webFind. -type d-name ". SVN" |xargs RM-RVF
Removes executable properties for a specified type of file under the specified directory
code is as follows
copy code
Find./- Type F-name "*.php"-exec chmod a-x {};
Apache2-v
Server version:apache/2.4.7 (Ubuntu)
1. Modify the site root directory
vim/etc/apache2/sites-enabled/000- default.conf
documentroot/mnt/test/...
vim/etc/apache2/apache2.conf
Tags: installing mysql with file ar problem amp sqlRecently installed in Ubuntu under the MySQL, because it has been installed once, compiled and installed, this time want to directly install the original copy to use, the following to remember the problems encountered.Configuration file my.cnf directly below the MySQL directory/data/server/mysql/Start command mysqld--DEFAULTS-FILE=/DATA/SERVER/MYSQL/MY.CNF After compiling the installation, now using t
Label:Workaround:Change to the following:Directory/usr/local/hadoop/tmp/tmp/hadoop-root/dfs/name is in a inconsistent state:storage directory does not exist or is not accessible
SVN client complains today when SVN submits the code
Error:can ' t find temporary directory:internal errorError: Unable to find temp directory: Internal errorsolution in the online Google, the same as the server is full of disk ...
Df-h View disk Information
centos/dev/mapper/cl-root 100% Solution /dev/mapper/cl-root 100%, Instant Meng, because I do not know what it is, online a trawl, Probably know that with the Linux system physical space a
Access prompts the following error:Oops:cannot Change Directory:/home/ftpThe reason is that his CentOS system installed SELinux, because the default is not open FTP support, so access is blocked.View SELinux Settings
The code is as follows
Copy Code
# Getsebool-a|grep FTPFtpd_disable_trans--> off
Or
The code is as follows
Copy Code
Ftp_home_dir-->off
Workaround:Use the Setse
Sub EFolder (foldername)
Dim fso
Set Fso=server.createobject ("Scripting.FileSystemObject")
If Fso.folderexists (Server.MapPath (foldername)) then
Set fso=nothing
Exit Sub
Else
Fso.createfolder (Server.MapPath (foldername))
End If
Set fso=nothing
End Sub
'===================================================================
Sub Arrayfolder (PATH,SEP)Dim Arraypath,epath,newpathArraypath = Split (PATH,SEP)Newpath= ""For each epath in Arraypathnewpath=newpathepath "/"N
1.ls-d *
Copy Code code as follows:
amosli@amosli-pc:~$ ls-d *
%appdata% Develop many Sorted.txt workspace
Bank Documents Music Space Download
2. Find.-type d-maxdepth 1
If you do not add-maxdepth parameters, then there will be an infinite number of directories are listed.
Copy Code code as follows:
amosli@amosli-pc:~$ find. -type d-maxdepth 1
./videos./public./%appdata%./.kde./.gnome2./music
3.ls-f | grep '/$ '
Using the Linux piping
Directory Listing DeniedThis Virtual Directory does isn't allow contents to be listed.is an issue where directory permissions cannot be accessedSolution:Right---rights---add--Advanced--click on the search results inside everyone-> OK--click Full Control (to the big point permission)-OKDelete Default document, properties--------------------add document to index.ht
On-premises adds deployment integrates with cloud services:There are two ways to extend adds to the cloud. One is through Windows Azure AD, the other is a server that installs Windows 2012R2 on a Windows Azure virtual machine, and then promotes the server to a DC.What is Windows Azure AD?Windows Azure AD is a Windows Azure-based service that is used to provide ID management and access control to applications on the cloud. Windows Azure AD is typically used when you subscribe to some of the servi
(1) Take the current working directory:Related functions: Get_current_dir_name, GETWD, chdirHeader file: #includeDefine function: char * GETCWD (char * buf, size_t size);Function Description: GETCWD () copies the current working directory absolute path to the memory space referred to in parameter buf, and the parameter size is the space size of BUF.Note:1, when calling this function, buf refers to the memory space is large enough. If the string length
Looping through the creation of directory methods
This will generate the Image.gif directory
Copy CodeThe code is as follows:
$filepath = "Test/upload/2010/image.gif";
Mk_dir ($filepath);
Looping through the creation of catalogs
function Mk_dir ($dir, $mode = 0755)
{
if (Is_dir ($dir) | | @mkdir ($DIR, $mode)) return true;
if (!mk_dir (DirName ($dir), $mode)) return false;
Return @mkdir ($dir, $mode);
}
1 Configuring the Site Directory, take Ubuntu as an example1) Open the default configuration folder for Apache: cd/etc/apache2/sites-available2) Open config file, this machine is sudo vi 000-default.conf3) Modify the path> ServerAdmin [email protected] /data/test errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/Access.log combined 2 Configure the virtual directory
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.