欢迎各位兄弟 发布技术文章
这里的技术是共享的
Linux locate命令
http 2.4新特性
1,MPM可于运行时装载
--enable-mpms-shared-all --with-mpm=event 提供多个可以切换,默认是 event
如果没有 --enable-mpms-shared-all ,只有 --with-mpm=event 表示只提供 event,只使用event
2,Event MPM
3,异步读写
4,在每模块及每目录上指定日志级别
5,每请求配置: <If> <ElseIf> <Else>:
6,增强的表达式分析器
7,毫秒级的KeepAlive Timeout;
查看全局环境变量:env 查看所有环境变量:set 删除一个变量:unset [变量名] #只针对当前会话 设置一个变量:name=
每次 执行 # source /etc/profile 重读profile
都会增加 /usr/local/apache/bin 一次
当然是因为
[root@localhost ~]# vim /etc/profile.d/httpd.sh
export PATH=$PATH:/usr/local/apache/bin
如果 想让它只有第一次增加 /usr/local/apache/bin 第二次 每三次,其它次数不增加的话,要判断$PATH 是否包含 /usr/local/apache/bin ,,,不包含的话 才执行 export PATH=$PATH:/usr/local/apache/bin
例如linux系统中都能设置$LANG=en_US.UTF-8或者$LANG=zh_CN.UTF-8。
export LANG=C,这个C是什么意思?
mysql 的
数据类型
字符型/node-admin/16197
定长:
char()
binary()
变长
varchar()
varbinary()
数值型
精确
INT
DECIMAL
近似
FLOAT
DOUBLE
日期时间型
DATE
公司使用的是linux搭建服务器,linux安
1) 网上有很多种产生这样情况的原因,DNS设置等,我这里却是由于GATEWAY引起的,没改之前是192.168.0.1,导致一直无法ping 通DNS地址,如(ping 8.8.8.8)一直出现Destination Host Unreachable 的错误,将GETEWAY改成192.168.1.1,问题解决,
2) 可能虚拟机的网卡设置不是网桥,而是 Host-Only(仅主机),导致 ping 任何主机 包括 # ping 网关 都ping 不通
来自 https://blog.csdn.net/q54244125/article/details/83154807
这篇文章主要介绍了linux中快速清空文件内容的几种方法,需要的朋友可以参考下
mysql默认情况下管理员是没有密码的
[root@localhost ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.95 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
源代码方式和二进制包的区别
500G排序,排序不能在磁盘上,只能在进程所在的地址空间中进行
如果没有索引,仅仅靠操作系统文件来进行的话,必须要把500G的数据全部载入内存排序,
才能取得排序结果的
更重要的是32位系统上,任何一个进程所能使用的内存空间不会超出4G,(当然windows 32位 可能是另外一码事)
除了保留给内存系统的1G之外,事实上也只有3G,
无论如何,对于数据的高效管理,在文件上是无法实现的,这就是为什么对于数据的管理必须要基于DBMS的原因,
DBMS根据规模不同分为
轻量级的应用
企业级的应用
#!/bin/bash
#
# this is the standard Drupal cron invocation that runs from cron
# this will flush the Page Cache when Minimum Cache Lifetime set to <none>
wget -O - -q -t 1 http://ykt.aaaaa.com/cron.php?cron_key=aaaaHsSyCSJGbbbbbbpagfMQk0
# use the sitemap and reload the Page Cache by accessing each page once
for file in /home/wwwroot/*
do
if [ -d "$file" ]
then
echo "$file is directory"
echo ${file}/public_html/public
if [ -d "${file}/public_html/public" ] ; then
\cp -f /home/wwwroot/ccccc_com/public_html/public/robots.txt ${file}/public_html/public
fi
elif [ -f "$file" ]
echo "$file is file"
done
for I in /www/wdlinux/nginx-1.8.1/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
for I in /www/wdlinux/httpd-2.2.31/conf/vhost/* ; do
/sbin/service mysqld status &> /dev/null
if [ $? -eq 0 ];then
/sbin/service mysqld restart
for file in /home/wwwroot/*/public_html ;do
if [ -d "$file" -a -f "${file}/.env" ] ;then
# echo $i
ENV=${file}/.env
sed -i 's@211.149.166.241@47.52.105.149@g' $ENV
sed -i 's/\r$//g' $ENV
for I in /home/wwwroot/* ; do
Frontcache=${I}/public_html/resources/views/frontcache
if [ -d $Frontcache ]; then
echo ${Frontcache}
rm -Rf ${Frontcache}/*
viewcache=${I}/public_html/storage/framework/views
if [ -d $viewcache ]; then
echo ${viewcache}
find ${viewcache} -name "*.php" | xargs rm -rf
#rm -Rf ${Frontcache}/*
logcache=${I}/public_html/storage/logs
if [ -d $logcache ]; then
echo ${logcache}
rm -f ${logcache}/laravel.log
更新时间:2018-10-10 17:19:16