banner
ximalaya

ximalaya

这里是openkava 的blog,关注程序开发的一切技术。 ZZ 表示转载的文章,如涉及版权,请和我联系删除。 在这里你可以看到关于以下技术的文章: 移动开发技术,ANDROID ,IOS,WINDOWS PHONE平台开发,企业ERP开发,动态脚本PYTHON ,OPENGL ES 3D技术,游戏开发技术,HTML5 ,JAVASCRIPT ,MYSQL,AMAZON EC2 ,GOOGLE GAE ,GOOGLE CLOUD SQL 等 。 本站发展历程: 2010年,正式把所有的blog移到这里,租用godaddy的空间,记录生活和工作上的一些心得。 下面是关于我的个人介绍,写在这里权当凑字数啦。 职业:软件开发,开发经验6年,管理经验3年; 工作上使用的技术:C#, SQL SERVER 个人使用的技术:PYTHON,PHP, CSS, JAVA ,ANDROID ,object-c 等等 联系我请发邮件:<a href="http://blog.openkava.com/openkava@gmail.png"><img class="alignnone size-full wp-image-96" title="邮箱" src="http://blog.openkava.com/openkava@gmail.png" alt="" width="174" height="24" /></a>

Installation process of Reddit CMS

Installation Process for Reddit CMS
First, refer to http://code.reddit.com/wiki/RedditStartToFinish, which is the main steps,
but many things need to be done by yourself.
In Ubuntu, refer to curl https://raw.github.com/gist/922144/install-reddit.sh | sudo sh ubuntu 10.04
There is a fully automated script.

1 Install Python. During compilation, there are several modules that cannot be compiled, causing errors when running paster later,
such as the _SSL and readline modules. Use Google to find the official homepage of these modules, download the source code,
tar -xvf download--xxx.tar.gz
Enter the extracted directory and run:
./configure
./make
./make install
This is generally how to install and compile programs in Linux.
For SSL modifications, see: http://www.webtop.com.au/blog/compiling-python-with-ssl-support-fedora-10-2009020237
2 Install necessary things. In Ubuntu Linux, you can use
apt-get install XXX
to get it done. In CentOS, use
yum install XXX

However, yum cannot find these modules, so you can only download the source code from the official homepage and compile it yourself.
To find some uncommon libraries, you need to add additional package repositories for yum to search.
Refer to: http://blog.csdn.net/gunnerjason/article/details/6238155
http://www.pub4.com/?post=70

3 In the installation steps, sudo python setup.py develop may encounter errors,
and it may be due to version conflicts in some scripts, and some downloads may not be available, requiring manual downloads.
Sometimes this script installs a newer version, so you need to downgrade the version.

easy_install "webhelpers==0.6.4"
easy_install "lxml==2.2.5"
yum install openssl openssl-devel
In the reddit/r2/setup.py script,
change easy_install(["http://github.com/downloads/ketralnis/pylibmc/pylibmc-1.0-reddit-04.tar.gz"])
to your own uploaded file accessible address, otherwise an error will occur.
wget requires --no-check-certificate to download.
4 memcached
After installation, it cannot be accessed through localhost, only through the bound public address,
which is strange, so the IP in the reddit configuration file example.ini needs to be replaced.
5 Cassandra
During installation, save the XML as storage-conf.xml and copy it to the conf directory of Cassandra,
then follow the instructions in the readme file to complete the installation.

6 Finally, run paster serve --reload example.ini http_port=8080
and you can see the results in the browser, but the parameters need to be adjusted to make reddit run normally.

You can refer to the following links:
http://esigler.com/pages/installing-reddit-on-ubuntu-1010
https://gist.github.com/922144
http://rpm.pbone.net
https://github.com/reddit/reddit/wiki

To summarize this installation, it took 3 days and I also learned many commands in Linux. Here is a summary of the commands used,
so I won't forget them next time.#

1 ls / -al -- list all files
2 ln -s /xx/a //xxx/b -- link files
3 rm -rf a -- delete directory, including files
4 aa > t.txt -- redirect all stdout and stderr to a file
5 ./configure make make install -- compile program
6 su -u username -- switch to another user
7 find / -name "XX" | grep -- find file names and filter output
8 export PATH=$PATH:/XXX/XXX -- add command execution path
9 ftp xxx.com / bin / send a.txt b.txt /get a.txt b.txt -- upload and download files on FTP
10 wget http://d.com/a.rar -- download file
11 ps -A | grep xxx -- display processes
12 kill -9 xxxx -- force kill process
13 netstat -an | grep LISTEN -- port listening
14

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.