This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory | |
在Redhat AS5上编译安装某软件,输入命令./configure后,提示“bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory”。 | |
最后在网上查找了,分析认为此文件是在window下写的,所以在每行后面会加个ctrl+m就是^M,所以后面的sh就变成sh^M当然是没有这个命令的,所以脚本就不能运行了,把^M去掉就应该没问题了。 | |
输入命令:dos2unix configure 把它转化成linux文件。 | |
如果没有dos2unix此命令,可用此方法: | |
cat ./configure.sh | tr -d ‘\r’ > temp.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y mysql-server mysql-client | |
mysql_secure_installation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useradd -d /home/web -m web | |
adduser web sudo | |
passwd web | |
bash | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install git | |
cd /home | |
git clone https://github.com/openstack-dev/devstack.git | |
cd devstack | |
git checkout stable/havana | |
vi /lib/nova_plugins/*docker # modify version from 0.6.1 to 0.10.0 | |
./tools/create-stack-user.sh | |
chown -R stack:stack /home/devstack | |
su stack | |
./tools/docker/install_docker.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libsqlite3-dev | |
sudo apt-get install libxslt-dev libxml2-dev | |
show variables like 'character%'; | |
http://waynehu16.iteye.com/blog/1557777 | |
http://www.ha97.com/5359.html | |
service mysql stop | |
service mysql start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install mysql-5.5 | |
sudo apt-get install mysql-server | |
sudo apt-get install mysql-client-core-5.5 | |
sudo apt-get install libmysqlclient-dev | |
login: | |
mysql -u root -p | |
show databases; | |
use mysql; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x86.tar.gz | |
tar xvzf node-v0.10.26-linux-x64.tar.gz | |
vi /etc/profile | |
export NODE_HOME=/usr/local/node-v0.10.26-linux-x64 | |
export PATH=$PATH:$NODE_HOME/bin | |
export NODE_PATH=$NODE_HOME/lib/node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install refinerycms -ri -rdoc | |
source 'http://ruby.taobao.org' | |
gem 'webrat', '~> 0.7.3' | |
gem 'refinerycms-memberships', '~> 2.0.0', :git => 'https://github.com/rbriank/refinerycms_membership.git' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install rails -v 3.2.17 | |
gem uninstall rails -v 3.2.17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iconv -f gbk -t utf-8 index.html -o entest.html |
NewerOlder