CentOS Tips

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 









评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值