预览模式: 普通 | 列表

centos lnmp “.user.ini”无法删除解决方法

mysql提示Table is read only的解决方法

今天把windows下的数据库文件复制到liunx下,phpmyadmin中Update数据提示“Table ‘xxxxxxx’ is read only”。

其实这样的问题,一般都是备份数据库的时候没有按照正常的方法备份。直接在MYSQL DATA目录下面复制的数据,然后上传到新服务器上。造成数据库的权限或者属主不正确导致的。

登陆客户的SSH,进入网站MYSQL下面,修改网站数据库的属主和权限。

运行命令:

chown -R mysql:mysql /var/lib/mysql/juxian/
chmod -R 0777 /var/lib/mysql/juxian/

查看更多...

Tags: centos

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 161

Web.config中设置  maxAllowedContentLength大小

</system.webServer>

  <security>

    <requestFiltering>

查看更多...

Tags: asp.net iis

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 140

nginx隐藏php版本信息X-Powered-By

 在nginx配置文件添加:fastcgi_hide_header X-Powered-By;

Tags: nginx

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 138

VB.Net转换时间/日期值为字符串的方法

Working with date and time values often requires an ability to convert these values into string values in a particular format. In this article, I'll look at a simple way of converting these values into formatted strings.
Working with standard format strings
You can convert a Date/Time value into a string by overloading a version of the ToString method, which accepts a format string.
There are two types of Date/Time format strings: standard and custom. The standard format strings use one of the predefined formats and are specified by a letter corresponding to a particular format. When converting a Date/Time value to a string, the letter specifying one of the standard formats is used to refer to a particular format specifier. Here's a list of the standard date format specifiers:
  • d: short date
  • D: long date
  • t: short time
  • T: long time
  • f: full Date/Time with short time
  • F: full Date/Time with long time
  • g: general Date/Time with short time
  • G: general Date/Time with long time
  • M or m: month day
  • R or r: RFC1123
  • s: sortable Date/Time that conforms to ISO 8601
  • u: universal sortable Date/Time
  • U: full Date/Time with long time. (This format is the same as F, but it uses universal GMT time.)
  • Y or y: year month
Control Panel settings
The settings in the Control Panel's Regional and Language Options section influence the result you get when formatting a Date/Time value. The settings are used to initialize the DateTimeFormatInfo object, which is associated with the current thread culture and provides the values that control the formatting.

Dim dateTimeInfo as DateTime = DateTime.Now MessageBox.Show (dateTimeInfo) Dim strMonth as String = dateTimeInfo.ToString("m") MessageBox.Show(strMonth)

The code defines the DateTime variable dateTimeInfo and sets its value to the current Date/Time. Then, I define the String variable strMonth and convert the value of dateTimeInfo into a String in a Month format.

Tags: vb.net

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 173

vb.net 日期时间格式转换(Format函数)

VB.net 中 取系统时间

Dim datestr As String = ""

datestr = Format(Now(), "yyyy/MM/dd H:mm:ss ffff")

用户定义的日期/时间格式(Format 函数)

下表显示可用于创建用户定义的日期/时间格式的字符。与 Visual Basic 的早期版本不同,这些格式字符区分大小写。

字符 说明

查看更多...

Tags: vb.net

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 176

VB.net 文件读取、写入、追加操作

 

Imports System.IO

 

Dim PathUserData As String = Application.StartupPath & "\实操统计sql.txt"

查看更多...

Tags: vb.net

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 154

CentOS7怎么保存退出vi编辑

保存命令

按ESC键 跳到命令模式,然后:

:w 保存文件但不退出vi

:w file 将修改另外保存到file中,不退出vi

查看更多...

Tags: centos

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 264

Pureftpd 修改默认21端口的方法

修改默认的21端口相对会比较安全一点点,如果Linux服务器用的是Pureftpd则修改端口号的方法如下:

vi /usr/local/pureftpd/pure-ftpd.conf

如果是1.3的话配置文件在  /usr/local/pureftpd/etc/pure-ftpd.conf

找到:

# Bind 127.0.0.1,21

查看更多...

Tags: centos lnmp

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 331
php连接sqlserver2005时,读取出来的数据是01 15 2014 12:00AM, 也就是说日期的格式是MM DD YY hh:mmAM
 
那如何把它转变成24小时制,且显示的格式为YY-MM-DD hh:mm:ss
打开 php.ini 配置文件
 
找到以下代码
 
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
; mssql.datetimeconvert = On
把"; mssql.datetimeconvert = On"前面的“;”去掉,并把状态改为Off
 
修改后,如下:
 
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
 mssql.datetimeconvert = Off
这样,日期就显示为2014-01-15 00:00:00。

Tags: php

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 331

Visual Studio 2013 各个版本的产品密钥

win7/win8/win10系统下Visual Studio 2013各个版本的密钥:
 
Visual Studio Ultimate 2013 KEY:BWG7X-J98B3-W34RT-33B3R-JVYW9
Visual Studio Premium 2013 KEY:FBJVC-3CMTX-D8DVP-RTQCT-92494
Visual Studio Professional 2013 KEY:XDM3T-W3T3V-MGJWK-8BFVD-GVPKY
Team Foundation Server 2013 KEY:MHG9J-HHHX9-WWPQP-D8T7H-7KCQG 
 

Tags: Visual Studio

分类:业界文摘 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 285

IIS实现HTTPS的主机名绑定

 默认情况下,IIS中HTTPS 绑定是无法指定主机名的

解决办法:通过手工修改 IIS 配置来实现主机头绑定。打开如下位置的文件。
 
C:\Windows\system32\inetsrv\config\applicationHost.config
找到节点
 
<bindings>
    <binding protocol="net.tcp" bindingInformation="808:*" />
    <binding protocol="net.pipe" bindingInformation="*" />
    <binding protocol="net.msmq" bindingInformation="localhost" />
    <binding protocol="msmq.formatname" bindingInformation="localhost" />
    <binding protocol="http" bindingInformation="*:80:www.xxxxxx.com" />
    <binding protocol="https" bindingInformation="*:443:" />
</bindings>
更改为你的域名
 
<binding protocol="https" bindingInformation="*:443:www.xxxxxx.com" />
ok!

Tags: iis

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 247

 广告位