最新 分享

Publish our news and thoughts with all.

Popular Articles

Recent Stories

win7计算机管理打不开解决方法

There is no translation available.

Win7 操作系统对计算机的管理打不开或者提示说“该文件没有与之关联的程序来执行该操作,请安装一个程序,或者,如果已安装程序,请在“默认程序”控制面板中创建关联”的解决方法:

Ubuntu LAMP 升级php至7.4

There is no translation available.

# which php

  • 获取php安装目录

 

# /usr/bin/php -m

  • 获取当前PHP版本已安装的模块:

[PHP Modules]

calendar

Core

ctype

curl

date

dom

exif

fileinfo

filter

ftp

gd

gettext

hash

iconv

imap

json

ldap

libxml

mbstring

mcrypt

mysqli

mysqlnd

openssl

pcntl

pcre

PDO

pdo_mysql

Phar

posix

readline

Reflection

session

shmop

SimpleXML

soap

sockets

SPL

standard

sysvmsg

sysvsem

sysvshm

tidy

tokenizer

wddx

xml

xmlreader

xmlrpc

xmlwriter

xsl

Zend OPcache

zip

zlib

[Zend Modules]

Zend OPcache

Apache配置cookie的HttpOnly属性

There is no translation available.

# vi /etc/apache2/sites-available/example.com.conf
Header set Set-Cookie HttpOnly;Secure

Apache X-Frame-Options配置

There is no translation available.

X-Frame-Options HTTP 响应头是用来给浏览器指示允许一个页面可否在 <frame>, <iframe> 或者 <object>中展现的标记。网站可以使用此功能,来确保自己网站的内容没有被嵌到别人的网站中去,也从而避免了点击劫持 (clickjacking) 的攻击。

Hive常见操作命令

There is no translation available.

1. hive模糊搜索表 show tables like '*name*';

2. 查看表结构信息 desc formatted tablename; desc table_name;

3. 查看分区信息 show partitions tablename;

4. 根据分区查询数据 select table_coulm from tablename where partitionname = '2016-02-25';

Ubuntu 常用查找文件与文件内容指令

There is no translation available.

查找文件

locate

作用相当于find -name,但是locate速度会比find快很多,因为locate命令也是用数据库查找的。

在Linux服务器(ubuntu)上使用Apache为odoo openerp配置域名

There is no translation available.

Odoo is very well known ERP system today. Odoo 9 provides great features that will help to grow business. By default odoo runs over port 8069. So we are accessing server using domain:8069. What if we need to access server using only domain like a standard website? We can do it by configuring web server with odoo. Here I am going to show you configuration of Apache web server for odoo.

ubuntu 修改 locale 为 zh_CN.utf8

There is no translation available.

locale -a

显示支持的语言

vi /etc/default/locale

编辑使用的语言