CentOS Tips

来源:互联网 发布:知乎手机怎么回答 编辑:程序博客网 时间:2024/06/05 09:53

Extract tar.gz

tar -xvzf xx.tar.gz


Nginx installation: 

wget -c http://nchc.dl.sourceforge.net/project/pcre/pcre/8.12/pcre-8.12.tar.gz

wget -c http://www.nginx.org/download/nginx-1.2.2.tar.gz 

These 2 links maybe changed by the new version ,After downloading these 2 packages, you have to config and make & make isntall the nginx.

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-openssl=/usr/ --with-pcre=/website/pcre-8.12

make & make install


Find out the version of rehl: 

lsb_release -a 

This command is suitable for CentOS,Redhat,SuSE and Debian.

uname

uname -a (this can search for detail)

Installation of mysql 

wget -c http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.56.tar.gz


./configure --prefix=/usr/local/mysql --sysconfdir=/opt/etc/mysql/ --localstatedir=/opt/var/mysql/ --with-unix-socket-path=/tmp/mysql/mysql.sock --with-tcp-port=3306 --with-charset=utf8 --with-extra-charsets=gb2312,gbk


make & make install 

/etc/rc.d/init.d/mysqld start

The passoword is new-password 

you use this command to change the password

mysqladmin -uroot -p password 'admin' 

Then input the new-password 









原创粉丝点击