博文

linux语言设置

locale-gen dpkg-reconfigure locales

How To Install TeamViewer on Debian 8

In case you get the error “wrong architecture i386” you have to execute the following command lines as an administrator: dpkg –add-architecture i386 apt-get update apt-get upgrade dpkg -i teamviewer_12.0.xxxxx_i386.deb In case dpkg indicates missing dependencies, complete the installation by executing the following command: apt-get install -f

fix owncloud

Cron crontab -u www-data -e /15 * /usr/bin/php -f /path/to/your/owncloud/cron.php apt-get install memcached php5-memcached apt-get install redis-server php5-redis apt-get install php-apcu 配制config.php ‘memcache.local’ => ‘OCMemcacheAPCu’, ‘memcache.locking’ => ‘OCMemcacheRedis’, ‘redis’ => [ ‘host’ => ‘localhost’, ‘port’ => 6379, ],

debian显示内存占用前十的进程

ps aux | sort -k4,4nr | head -n 10 pmap $(pgrep php-cgi | head -1) //查看PHP-CGI占多大的内存

apache24 on debian

apt-get install apache2-mpm-prefork libapache2-mod-php5 apt-get install php5-cli php5-curl php5-gd php5-gmp php5-imap php5-json php5-ldap php5-mcrypt php5-mysql php5-tidy php5-xmlrpc php5-xsl a2enmod actions a2dismod mpm_event a2enmod mpm_prefork nano /etc/apache2/mods-available/mpm_prefork.conf StartServers 2 MinSpareServers 2 MaxSpareServers 4 MaxClients 75 MaxRequestWorkers 75 MaxConnectionsPerChild 2000 /etc/init.d/apache2 restart

cm13 android 6.0及cm14 android 7.12 wifi有感叹号而且无法自动连接wifi怎么 解决?

在终端模拟器下(要获取ROOT权限才可以)或进入adb shell cm13 android 6.0 settings put global captive_portal_detection_enabled 0 然后重启手机,然后可以再验证一下 settings get global captive_portal_detection_enabled android 7.1.2的解决方法 settings put global captive_portal_https_url http://www.google-analytics.com/generate_204

no acceptable c compiler found in $path

sudo apt-get install build-essential

debian 安装php-memcached扩展

memcached 安装 sudo apt-get install memcached memcached 参数说明 memcached -d -m 50 -p 11211 -u root -m 指定使用多少兆的缓存空间;-p 指定要监听的端口; -u 指定以哪个用户来运行 安装php-memcache模块 sudo apt-get install php5-memcache 编辑配置文件 sudo vi /etc/php5/conf.d/memcache.ini ;uncomment the next line to enable the module extension=memcache.so [memcache] memcache.dbpath=”/var/lib/memcache” memcache.maxreclevel=0 memcache.maxfiles=0 memcache.archivememlim=0 memcache.maxfilesize=0 memcache.maxratio=0

update-grub command not found

update-grub command not found:apt-get update; apt-get install –reinstall grub mkdir /boot/grub update-grub