mysql root 설정

document 2012. 3. 10. 00:59
계정 생생
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h i-4351-22749-VM password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

========

권한 만들기
  CREATE USER 'root'@'%' IDENTIFIED BY 'altvirus';

GRANT EXECUTE, PROCESS, SELECT, SHOW DATABASES, SHOW VIEW, ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE TEMPORARY TABLES, CREATE VIEW, DELETE, DROP, EVENT, INDEX, INSERT, REFERENCES, TRIGGER, UPDATE, CREATE USER, FILE, LOCK TABLES, RELOAD, REPLICATION CLIENT, REPLICATION SLAVE, SHUTDOWN, SUPER  ON *.* TO 'root'@'%' WITH GRANT OPTION; 

FLUSH PRIVILEGES; 

'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Smooth Streaming Module for Apache  (0) 2011.11.23
Posted by altvirus
,
간단한 거면 이렇게 동기화 해놓고 그냥 웹서버 실행해도 되겠다 ㅋㅋㅋㅋ


Install Dropbox via command line

The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.

32-bit:

cd ~ && wget -O - http://www.dropbox.com/download?plat=lnx.x86 | tar xzf -
        

64-bit:

cd ~ && wget -O - http://www.dropbox.com/download?plat=lnx.x86_64 | tar xzf -
        

Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

~/.dropbox-dist/dropboxd
        
If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory. Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.

 
 
저렇게 대몬 실행을 하면 콘솔에 주소가 나오는데, 복사해서 붙이고, 로그인 하면 동기화가 시작된다.

'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Smooth Streaming Module for Apache  (0) 2011.11.23
Posted by altvirus
,

http://smoothstreaming.code-shop.com/trac/wiki/Mod-Smooth-Streaming-Apache
 



For Apache/Windows? we have a binary available. Just copy the mod_smooth_streaming.so to your modules directory and continue with the 'Configuration'.

Dependencies

We will be using  apxs2, the APache eXtenSion tool, to build and install the module for the Apache server.

Make sure you have apxs2 installed:

sudo apt-get install apache2-threaded-dev

The module also depends on Expat for parsing the XML manifest files:

sudo apt-get install libexpat1-dev

Download

Download the source of the Smooth Streaming Module for Apache.

cd ~
wget http://smoothstreaming.code-shop.com/download/apache_mod_smooth_streaming-1.0.8.tar.gz
tar -zxvf apache_mod_smooth_streaming-1.0.8.tar.gz

Download the source of the command line utility 'mp4split'. This tool converts MP4 files to Fragmented MP4 and also creates the necessary manifest files.

wget http://smoothstreaming.code-shop.com/download/mp4split-1.0.8.tar.gz
tar -zxvf mp4split-1.0.8.tar.gz

Build

cd ~/mod_smooth_streaming-1.0.8
./configure --with-apxs=`which apxs2`
make
sudo make install
cd ~/mp4split-1.0.8
./configure --with-expat
make
sudo make install

Configuration

We're going to tell Apache that files ending in .ism (“IIS Smooth Streaming Media”) are going to be handled by the smooth_streaming_module. The requests made by Silverlight are actually in a different form, but we will be rewriting them to files with a .ism extension.

In your httpd.conf:

LoadModule smooth_streaming_module /usr/lib/apache2/modules/mod_smooth_streaming.so
AddHandler smooth-streaming.extensions .ism

In your .htaccess:

RewriteEngine On
RewriteRule ^(.*/)?(.*)\.([is])sm([l])?/[Mm]anifest$ $1$2.$3sm$4/$2.ismc [PT]
RewriteRule ^(.*/)?(.*)\.([is])sm([l])?/QualityLevels\(([0-9]+)\)/Fragments\((.*)=([0-9]+)\)(.*)$ $1$2.$3sm$4/$2.ism?bitrate=$5&$6=$7 [PT]

Note that you have to allow Apache to read the .htaccess file (i.e. 'AllowOverride FileInfo') or, even better, move the rewrite rules to a <Directory> section in your main server configuration file.

After restarting your web server, you can continue with verifying your setup.

License

This version is free if you agree to the  noncommercial license. Please mention its use on your website, in the lines of 'This website uses video streaming technology by  CodeShop'.

Our commercial license is very inexpensive, see the following page to check if you need a commercial license.

Feedback

If you have any questions, thoughts or ideas on Smooth Streaming you can leave a message on our forum


'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Posted by altvirus
,