virtualmin apache setting

mod_cache.c,mod_mem_cache.c,mod_disk_cache.c

 

 

Servers --- Apache Webserver ---Global configuration --- Configure Apache Modules --- enable

 

 

etc/apache2/httpd.conf

 

LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /images
MCacheSize 4096
MCacheRemovalAlgorithm LRU
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
CacheMaxExpire 864000
CacheDefaultExpire 86400
CacheDisable /php
</IfModule>
</IfModule> 
Read more...

virtualmin mysql 设置

althlon 64  2g内存

 

/etc/mysql/my.cnf

 

MySQL server listening address

选择 any 允许 远程连接

 

--------------------------------------------------------------------------------------------------------------------------

VERSION 1

--------------------------------------------------------------------------------------------------------------------------

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port        = 3306
socket        = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket        = /var/run/mysqld/mysqld.sock
nice        = 0

[mysqld]
#
# * Basic Settings
#
user        = mysql
pid-file    = /var/run/mysqld/mysqld.pid
socket        = /var/run/mysqld/mysqld.sock
port        = 3306
basedir        = /usr
datadir        = /var/lib/mysql
tmpdir        = /tmp
language    = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address        = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 384M
max_allowed_packet    = 32M
thread_stack        = 128K
thread_cache_size    = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover        = BACKUP
#max_connections        = 100
table_cache            = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M

# Try number of CPU's*2 for thread_concurrency
thread_concurrency     = 8
#
# * Query Cache Configuration
#
query_cache_limit       = 1M
query_cache_size        = 32M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log        = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries    = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id        = 1
#log_bin            = /var/log/mysql/mysql-bin.log
expire_logs_days    = 10
max_binlog_size         = 100M
#binlog_do_db        = include_database_name
#binlog_ignore_db    = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet    = 16M

[mysql]
#no-auto-rehash    # faster start of mysql but no tab completition

[isamchk]
key_buffer        = 16M

#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1


#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

 

 

 

 

 

------------------------------------------------------------------------------------------------------------------

 

 



















[client]
port        = 3306
socket        = /var/run/mysqld/mysqld.sock





[mysqld_safe]
socket        = /var/run/mysqld/mysqld.sock
nice        = 0

[mysqld]



user        = mysql
pid-file    = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir        = /usr
datadir = /var/lib/mysql
tmpdir        = /tmp
language    = /usr/share/mysql/english
skip-external-locking






key_buffer = 384M
max_allowed_packet    = 32M
thread_stack        = 128K
thread_cache_size    = 8


myisam-recover        = BACKUP

table_cache            = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M


thread_concurrency     = 8



query_cache_limit       = 1M
query_cache_size        = 32M



















expire_logs_days    = 10
max_binlog_size         = 100M






skip-bdb
set-variable = max_allowed_packet=32M
set-variable = key_buffer=400M





















[mysqldump]
quick
quote-names
max_allowed_packet    = 16M

[mysql]


[isamchk]
key_buffer        = 16M

















!includedir /etc/mysql/conf.d/

 

 

----------------------------------------------------------------------------------------------------------------------

Read more...

ORA-01536

ORA-01536: 超出表空间'表空间名'的空间限量

 

相同的语句放在另外一台数据库去运行是好的丫,再查了查,不出错的这个用户有DBA权限:) , 有错的没有DBA权限,那应该与权限有关了。

再查了查表空间,发现有200M,但只用了15M,KAO。

google了一下,说是运行

GRANT UNLIMITED TABLESPACE TO jwgl;

可以解决问题,果然如此。

但问题是,我的表空间还有这么多空的,为什么会出现超出表空间的空间限量错误呢?

不明白啊。

 

 

你虽然有200M,但jwgl用户只有15M的使用权,

 

http://mis.im.tku.edu.tw/~xman13a/oracle/tablespace/ora_1.htm

 

 

Read more...

set use and accec for a doc 设置权限

----------------------------------------------------------------------------------------------

 

chown -R 1005:1005 /home/yvesblog1/public_html

 

chmod 750 /home/yvesblog1/public_html -R

 

----------------------------------------------------------------------------------------------

 

chown -R 1004:1004 /home/ilci/public_html


chmod 750 /home/ilci/public_html -R

 

----------------------------------------------------------------------------------------------

Read more...

加速 mldonkey

option webin

增加 kad 增加 serveur met

Remove
DL
geoip.dat
0
http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
DL started


Remove
DL
contact.dat
168
http://download.overnet.org/contact.dat
unknown


Remove
DL
server.met
24
http://www.emule.org.cn/server.met
DL started


Remove
DL
kad
0
http://renololo1.free.fr/e/nodes.dat
File loaded


Remove
DL
guarding.p2p
96
http://www.bluetack.co.uk/config/level1.gz
File loaded


Remove
DL
kad
0
http://www.emule-inside.net/nodes.dat
unknown


Remove
DL
hublist
0
http://dchublist.com/hublist.config.bz2
unknown


Remove
DL
nodes.gzip
0
http://update.kceasy.com/update/fasttrack/nodes.gzip
unknown

Read more...

mldonkey install debian 安装

apt-get install mldonkey-server



在安装到最后的时候会提示你是否要开机自动启动该服务,选择Yes.

好,现在mldonkey已经启动了!不过需要做一些配置,才能让他发挥出他的极致!

先停止此服务


需要使用 用户 mldonkey 做下面的事情

su mldonkey

 

/etc/init.d/mldonkey-server stop

然后修改一下配置文件

nano /var/lib/mldonkey/downloads.ini

找到allowed_ips = [“127.0.0.1″; “89.88.100.190″;]

 

建立 目录  /home/DL/file

和          /home/DL/dir

设置权限  用户组 用户 mldonkey

在 web 界面 option  share 设置 add share

0 /home/dl/file incomefile

类推

 

option client name 改成

[CHN][veryCD]yourname


allowed_ips 意思 允许访问的IP,需要把你另外机器的IP添加上!~具体看本行上面的注释…

然后启动服务

使用用户 mldonkey

/etc/init.d/mldonkey-server start

因为要配合Sancho来使用,而安装ML的主机没有GUI所以,在另外的机器安装Sancho(Linux,windows均支持)去http://sancho-gui.sourceforge.net/下载适合你的版本!

现在就可以使用远端的sancho来登录mldonkey的那个主机了!当你安装完sancho之后运行会出现

这样一个配置框,你的可能是英文的,主机地方填写你ml机器的IP,默认用户amdin不变,密码是空然后点击”完成”就连接到你的ML服务器了!

点击Tools –> Preferences –> sancho:Main 下的 General 里找到 (*) Use locale file: 在后面的下拉框中找到 zh_CN 然后保存一下,重新启动就是中文界面了!

好现在是中文页面,简单的多了吧!?

现在要开始配置Ml服务器了!

**现在在Sancho上所做的修改,都会反应到ml主机的相应配置文件中!只不过是远程图形界面更容易修改,当然你也可以直接修改配置文件!

工具–>首选项–>Main(Mail下的)在client_name 输入一个服务器名字 格式最好为 [CHN][VeryCD]yourname ,因为这个连接到eMule几率大些(本人没有证实)..

Networks下Donkey ED2K-force_client_hight_id,ED2K-force_high_id,ED2k-keep_best_server打勾,修改 max_connected_servers 为 30,ED2K-port 填入你开放的TCP端口.

添加我们常用的服务器,当然这不是在Preferences中设置的,而是在Sancho的主界面中上方第二行点击Server,然后点击绿色+号旁边的 带+的地球图标的按钮来添加一个server.met,比如电驴用的http://www.emule.org.cn/server.met

带宽设置 Bandwidth 相应自己修改.

设置amdin密码:

在sancho面板点击控制台下方输入:

useradds admin **** (****为你要设置的密码)

在首选项的Networks 下把 enable_kademlia ,enable_overnet 打钩.

然后上google上搜索一些emule的服务器列表,添加上基本上就可以驾驭你的驴了!

关于下载BT速度不理想,我还在找办法…

web 端口号4080

多用户没研究呢。

Read more...
Subscribe to this RSS feed
Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34