随笔-40  评论-5  文章-0  trackbacks-0
  2012年1月25日

在linux中安装redmine

 

原来都是通过安装ruby进行安装的,复杂的很。

 

后来找个bitnami整合的,包含apache\mysql\redmine\ruby\svn\php\phpadmin等。

直接到bitnami官方网站下载完整的linux安装包,文件是bin.

 

在ubuntu中的命令行直接 ./文件名.bin

就可以进入安装界面了,几分钟后配置些东西就安装好了

 

默认的访问地址 curl http://localhost

 

这个页面是apache里的默认index.html页面,

默认完整路径为:/opt/redmine/apache2/htdocs/index.html

redmine系统的管理员账号就是安装时填写的。

mysql数据库的密码在redmine下的configure文件夹内,有个database.yml文件,里面有随机生成的密码,登录进去后,可以启用root

也可以开启其他计算机连接访问。 

 

 

posted @ 2012-01-25 22:02 s3 阅读(29) 评论(0) 编辑
  2012年1月22日

安装参考

openresty.org   

 

安装依赖库
yum install readline-devel pcre-devel openssl-devel
 解压
tar xzvf ngx_openresty-VERSION.tar.gz

 

配置

 

./configure --prefix=/opt/openresty --with-libdrizzle=/usr/local --with-http_drizzle_module --with-luajit --with-http_iconv_module -j2 --with-http_postgres_module

 然后就是make和make install

升级openresty

下载最新的openresty包

tar\configure\make\make install.在安装前需要将运行的nginx进程kill

将nginx的路径加入到环境变量中

PATH=/usr/local/openresty/nginx/sbin:$PATH export PATH

这个好像是在当前登录会话中起作用,退出就失效了,好像有个办法能让一直在环境变量中,再试

 

开机自动运行nginx

好像是在/etc/rc.d/rc.local中加入nginx启动的脚本就行了,回头试下

 

至于nginx的安装路径,配置文件路径,日志路径等,都是在./configure中指定的,在make install后,命令行输出里也有详细内容。

 

nginx版本查看,nginx -v

nginx详细配置参数查看  nginx -V

 

验证环境变量中是否存在nginx的路径等,可以通过export命令

验证nginx是否启动可以通过curl http://localhost:8080  (我这个地址是openresyt官方默认的)

或者用htop工具查看进程里是否有nginx。

 

 

本文章,只是个人在熟悉过程中的笔记,方便日后回顾使用。也许也会对不熟悉linux的人员参考(本人是没用过linux的情况下进行的)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2012-01-22 10:08 s3 阅读(12) 评论(0) 编辑
  2011年12月28日


== Installation instructions for IIS 7 CosignModule ==

1) Configure SSL certificates and https.
 1.a) Install rewritemodule to redirect http traffic to https.
2) Modify permissions for ssl certs and private keys.
 2.a) Install any necessary certificate authority files.
3) Create cookie database directory.
4) Copy the cosignmodule files.
5) Modify applicationhost.config with cosign values.
 .a) Turn off cosign protection for /cosign/valid
6) Enable the cosignmodule.
 .a) 32-bit application pools.
7) Create the cosign validation handler.
 .a) 32-bit validation handler.
8) Test a cosign-protected page.
() Turn cosign protection on and off, factors
() Getting more help.
IIS7 CosignModule==安装说明==

1)配置SSL证书和HTTPS。
1.A)安装rewritemodule HTTP流量重定向到HTTPS。
2)修改为SSL证书和私钥的权限。
2.A)安装任何必要的证书颁发机构文件。
3)创建cookie数据库目录。
4)复制cosignmodule文件。
5)修改applicationHost.config的cosign值。
A)关闭cosign/ cosign/有效保护
6)启用cosignmodule。
A)32位的应用程序池。
7)创建cosign验证处理。
A)32位验证处理。
8)测试cosign受保护的页面。
()打开cosign保护和关闭的因素
()获取更多的帮助。

(1) Configure SSL and https (1)
===================================================
Generate an SSL certificate and have it signed, if needed:
http://technet.microsoft.com/en-us/library/cc732906(WS.10).aspx

Before proceeding, be sure that your web site is accessible over https. By default, the CosignModule marks its
cookies as secure. This means if a user logs in and browses to an http part of your web site, it will appear
to the cosignmodule that the user is not logged in. Being sure this works correctly now, as well as any redirects
from http to https (see below), will save you headaches later.


(1.a) Install RewriteModule to redirect http traffic to https (1.a)
To ensure users are sent to the secure, cosign-protected portion of your web site, it may be necessary to
intercept http requests and redirect them to their https equivalent. The Microsoft Rewrite Module is
recommended.
(1)配置SSL和HTTPS(1)
================================================== =
产生SSL证书,并已签署,如果需要的话:
http://technet.microsoft.com/en-us/library/cc732906(WS.10)。ASPX

在出发之前,确保你的网站是通过HTTPS访问。默认情况下,CosignModule标志着其
饼干为安全。这意味着如果用户登录并浏览到您的网站HTTP,它会出现
cosignmodule用户不登录英寸作为确保工作正常现在,以及任何重定向
从HTTP到HTTPS(见下文),将节省您的头痛后。


(1.A)安装RewriteModule HTTP流量重定向到HTTPS(1.A)
为了确保用户的安全,cosign保护您的网站的一部分被发送到,它可能是必要的
拦截HTTP请求重定向到他们的HTTPS相当于。微软重写模块
建议。

It can be downloaded here:
http://www.iis.net/download/urlrewrite
可以在以下地址下载到:


(2) Modify Permissions for SSL Private Keys (2)
===================================================
The account or group the application pool runs as needs Full Control and Read permissions in the
following Registry key:
 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\MY 

By default, this account is IIS AppPool\DefaultAppPool in Windows 2008 R2. "Network Services" should
work for Windows 2008.
(2)修改权限的SSL私钥(2)
================================================== =
应用程序池的运行需要完全控制和读取的权限的帐户或组
以下注册表项:
HKEY_LOCAL_MACHINE\ SOFTWARE \ MICROSOFT\ SystemCertificates\我的

默认情况下,此帐户是在Windows的IIS程序池\ DefaultAppPool2008。 “网络服务”
为Windows 2008。

在证书管理中给帐户权限。

Give said account permission from within certificate manager.
 Start -> Run
 "mmc" (or mmc /64)
 ctrl + M
 Select Certificates
 Add ->
 select Computer Account
 select Local Computer
 Finish, Ok
 点击[开始]—>[运行]—>输入mmc(或者是 mmc /64)—>按ctrl + M打开添加/删除单元管理—>选择证书—>添加—>选择计算机帐号—>选择本地计算机—>然后完成

 Select Certificates -> Personal -> Certificates
 Select the certificate that matches the one to use for cosign.  Right-click-> All Tasks -> Manage Private Keys
 Give IIS_IUSRS "Full Control" and "Read" permissions.
选择证书 - >个人 - >证书
选择证书相匹配的一个使用cosign。右键单击 - >所有任务 - >管理私人密钥
给IIS_IUSRS“完全控制”和“读取”权限。

(2.a) Install Any Necessary Certificate Authority Files (2.a)

Cosign needs a certificate authority file to verify the identity of the weblogin server it is talking to.

For example, the University of Michigan weblogin servers' certificates are signed by the UM Web Certificate authority.
To install UMWebCA.pem certificate:
    Download the file: http://www.umich.edu/~umweb/umwebCA.pem
 Open Certificates from local machine (see above).
 Action | All tasks | Import ...
 Select the umwebca.pem file.
(2.A)安装任何必要的证书颁发机构文件(2.A)

Cosign需要一个证书颁发机构的文件,以验证weblogin服务器,它正在与身份。

例如,密歇根weblogin服务器证书的大学签署UM Web证书的权威。
要安装UMWebCA.pem证书:
    下载文件:http://www.umich.edu/?umweb/ umwebCA.pem
从本地机器上打开证书(见上文)。
行动|所有任务|导入...
选择umwebca.pem文件。


(3) Create a Directory for the Cookie Cache (3)
===================================================
Create a folder for the service cookie cache:
 md C:\inetpub\temp\Cosign Cookie DB

Permissions: IIS_IUSRS, full control
(3)创建一个cookie缓存目录(3)
================================================== =
服务cookie缓存中创建一个文件夹:
md C:\inetpub\temp\Cosign Cookie数据库

权限:IIS_IUSRS,完全控制


(4) Copy the CosignModule Files (4)
===================================================

copy /Y x64/CosignModule.dll C:\Windows\System32\inetsrv
copy /Y x86/CosignModule.dll C:\Windows\SysWOW64\inetsrv
copy /Y Cosign_Schema.xml C:\Windows\System32\inetsrv\config\schema
(4) 复制过滤模块到指定的目录下 (4)


(5) Modify applicationhost.config with cosign values.
===================================================

In the applicationhost.config file, add the following options. Note that the
proxyCookies section can be ignored. Only add this line, uncommented, of course
if your weblogin servers are configured to provide your web site with
proxy cookies.
(5)修改applicationHost.config的cosign值。
================================================== =

在applicationHost.config文件,添加以下选项。请注意,
proxyCookies部分可以忽略不计。只有加入这一行注释掉,当然,
如果您weblogin的服务器配置为提供您的网站。
代理cookies。


 <configSections>
  ...
  <sectionGroup name="system.webServer">
   ...
   <section name="cosign" overrideModeDefault="Allow" />
   ...
  </sectionGroup>
    </configSections>

 ...
 
    <system.webServer>

      ...

      <cosign>
        <webloginServer name="weblogin.example.org" loginUrl="https://weblogin.example.org/?" port="6663"
   postErrorRedirectUrl="https://weblogin.example.org/post_error.html" />
        <crypto certificateCommonName="http://www.example.org/" />
        <cookieDb directory="%systemDrive%\inetpub\temp\Cosign Cookie DB\" expireTime="120" />
     <!-- proxyCookies directory="%SystemDrive%\inetpub\temp\Cosign Proxy DB" / -->
        <validation validReference="https?://www\.example\.org(/.*)?"
                    errorRedirectUrl="http://weblogin.example.org/validation_error.html" />     
        <cookies secure="true" httpOnly="true" />
        <service name="cosign-www.example.org" />
        <protected status="on" />
      </cosign>

      ...
     
   </system.webServer>


(5.a) Turn Off Cosign Protection for /cosign/valid (5.a)

For the validation handler (see below) to work correctly, cosign protection
needs to be turned off for the /cosign/valid location. This can be done by
adding the following XML to applicationHost.config:
(5.A)关闭/cosign/valid(5.A)Cosign保护

为验证处理程序(见下文)才能正常工作,cosign保护
需要打开/cosign/valid 的位置。这可以通过
下面的XML添加到applicationHost.config的:

<location path="Default Web Site/cosign/valid">
    <system.webServer>
     <cosign>
            <protected status="off" />
     </cosign>
    </system.webServer>
</location> 


(6) Enable the CosignModule.(5)
===================================================
启用CosignModule
Here are the command line options for adding and removing the cosign module.
If appcmd.exe is not in your %PATH%, you can find it in
%windier%\system32\inetsrv

下面是通过命令行添加和移除CosignModule的方法,如果appcmd.exe不在环境变量中,你可以在%windier%\system32\inetsrv目录中找到

appcmd delete module "Cosign" /app.name:"Default Web Site/"
appcmd uninstall module "Cosign"
appcmd install module /name:"Cosign" /image:"CosignModule.dll" /add:"false"
appcmd add module /name:"Cosign" /app.name:"Default Web Site/"

The module can also be added and removed from the IIS Manager interface.
该模块同样也可以从IIS管理界面中添加和移除

(6.a) 32-bit Application Pools (6.a)
If you have 32-bit applications enabled and want to use cosign with these sites
you will need to add the 32-bit module as well.

(6.A)32位的应用程序池(6.A)
如果您有启用32位应用程序,要使用这些网站的cosign
你将需要添加32位模块以及。

appcmd install module /name:"Cosign-x86" /image:"%windir%\SysWOW64\inetsrv\CosignModule.dll" /add:"false" /precondition="bitness32"
appcmd add module /name:"Cosign-x86" /app.name:"32-bit legacy app"


(7) Create the Cosign Validation Handler.
===================================================

This can be done from within the IIS Manager under "Sites", "[name of your web site]", Handler Mappings, then select
"Add Module Mapping...", and specify the following items:

(7)创建Cosign验证处理程序。
================================================== =

这可以从在IIS管理器下“网站”,“[网站名称]”,处理程序映射,然后选择
“添加模块映射...",并载明下列事项:

RequestPath:
/cosign/valid*

Module:
Cosign

Name:
Cosign Validation


The validation handler can also be added with the following command:
appcmd set config "Default Web Site" /section:handlers /+[name='Cosign-Validation',path='/cosign/valid*',verb='*',modules='Cosign']

(7.a) 32-bit Validation Handler (7.a)
Same as above, but be sure to specify the 32-bit CosignModule and set the
precondition to bitness32.

appcmd set config "32-bit legacy app" /section:handlers /+[name='Cosign-Validation',path='/cosign/valid*',verb='*',modules='Cosign-x86',precondition='bitness32']

验证处理,也可以添加以下命令:
appcmd set config "Default Web Site" /section:handlers /+[name='Cosign-Validation',path='/cosign/valid*',verb='*',modules='Cosign']

(7.A)32位的验证处理程序(7.A)
同上,但可以肯定的,到指定的32位CosignModule设置
先决条件bitness32
appcmd set config "32-bit legacy app" /section:handlers /+[name='Cosign-Validation',path='/cosign/valid*',verb='*',modules='Cosign-x86',precondition='bitness32']


(8) Test a cosign-protected page.
===================================================

Load up your favorite, modern web browser and navigate to a cosign-protected
page on your web site. If everything went smoothly, you should be redirected
to your weblogin server and back to your cosign-protected web site.

Also see the included example scripts to get an idea of how to access the
cosign server variables.
(8)测试cosign受保护的页面。
================================================== =

载入您最喜爱的,现代的Web浏览器并导航到cosign保护
您的网站页面上。如果一切顺利的话,你应该重定向
weblogin服务器和您cosign保护的网站。

还可以看到包含的示例脚本的想法如何访问
cosign服务器变量。


() Turn cosign protection on and off, factors ()
===================================================

Each directory can also have a web.config file that overrides inherited configuration options:

()打开cosign保护和关闭,这些因素()
================================================== =

每个目录也可以有一个web.config文件,覆盖继承的配置选项:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
       <cosign>
            <protected status="off" />
        </cosign>
    </system.webServer>
</configuration>


If your server needs to configure specific authentication factors, you'll need
to add some items to the <service> tag.
如果您的服务器需要配置特定的身份验证因素,您需要
添加一些项目的<service>标签。

<service name="cosign-www.example.org" />
 <add factor="rsatoken" />
</service>

If you need to enable the optional ignore suffix, it will look like this:
如果您需要启用可选忽略后缀,它会看起来像这样:

<service name="cosign-www.example.org" />
 <add factor="rsatoken" />
 <add ignoreSuffix="-magic" />
</service>

Note that the "factor" items must all be satisfied, the "ignoreSuffix" will be
matched to any factor. For example, this configuration...
需要注意的是“生产要素”的项目都必须满意,“ignoreSuffix”将
相匹配的任何因素。例如,此配置...

<service name="cosign-www.example.org" />
 <add factor="rsatoken" />
 <add factor="kerberos" />
 <add ignoreSuffix="-magic" />
</service>

... will match the following factor combinations:
... ...将符合下列因素组合:
rsatoken kerberos
rsatoken-magic kerberos-magic
rsatoken-magic kerberos
rsatoken kerberos-magic


NOTE: Running an application pool in "classic mode" may result in the server variables not being available to ASP scripts.  There is a compatibilityMode
option to correct this.  You can add it to the <cosign> section of your config file.
注:在“经典模式”运行的应用程序池,可能会导致在服务器变量不可用的ASP脚本。有一个compatibilityMode
选项??,以正确的。你可以把它添加到你的config文件<cosign>节。

<cosign>
...
    <compatibilityMode mode="true" />
</cosign>


() Getting More Help ()
===================================================
更多帮助
http://weblogin.org/
http://webapps.itcs.umich.edu/cosign/index.php/Troubleshooting

Please join the discussion list before sending e-mail:
https://lists.sourceforge.net/lists/listinfo/cosign-discuss
cosign-discuss@lists.sourceforge.net

To receive announcements, please join:
https://lists.sourceforge.net/lists/listinfo/cosign-announce
cosign-announce@lists.sourceforge.net

 

posted @ 2011-12-28 04:01 s3 阅读(16) 评论(0) 编辑
  2011年11月19日

通过界面进行安装的,安装 好后不能 启动,需要自己手动启动和修改密码

参考网上的资料

启动mysql 

yum install mysql
yum install mysql-server
yum install mysql-devel
chgrp -R mysql /var/lib/mysql
chmod -R 770 /var/lib/mysql

service mysqld start  

 

 修改root的密码 

mysqladmin -u root password 'newpassword' 更改密码 

mysql -u root -p   登录数据库 

 mysql> DROP DATABASE test;   删除test数据库 

mysql> DELETE FROM mysql.user WHERE user = ''; 删除匿名帐户 

mysql> FLUSH PRIVILEGES;   重载权限 

添加mysql用户:GRANT ALL PRIVILEGES ON my_db.* TO 'user'@'localhost' IDENTIFIED BY 'password';

# sudo service mysqld restart  重启服务

# sudo service mysqld stop  关闭服务

 /etc/rc.d/init.d/mysqld status   查看mysql状态

# sudo chkconfig --del mysqld  删除服务清单中mysql服务

 chkconfig --list    察看mysql是否在自动启动列表中

#sudo /etc/init.d/mysqld start   启动mysql服务

#sudo /etc/init.d/mysqld stop   关闭mysql服务

#sudo /etc/init.d/mysqld restart   重启mysql服务

/usr/bin/mysqladmin -u root -p'password' shutdown关闭mysql服务

 

 

posted @ 2011-11-19 16:34 s3 阅读(491) 评论(0) 编辑
  2011年11月12日

这些linux真是不好用恩。fedora 16我下的是 DVD版的。好像3个多G

开始使用VMware安装,失败。

后来用oracle VM安装,成功了。不过启动gnome3的时候还是有问题。

 

系统装好后,就从windows的共享拷文件到linux下。

 

不过,oracle VM好像不能直接拖文件 。

 

我是通过,资源管理器中的文件菜单下的,访问远程服务器访问共享文件的 、。

 

访问远程服务器默认是采用FTP方式,在那个下拉列表中可以修改访问方式为windows共享

 

从共享拷贝文件到linux下,

 

slickedit安装目录下有个install.txt,里面写了怎么安装。./vsinstal什么的吧。

安装好后,进行破解。

 

默认安装位置在/opt/slickedit

 

在程序运行的时候,有问题,/opt/slickedit/bin/vs文件。

 

要啥子pypar2,我没搞懂是什么东东。

 

结果是通过,修改vs文件的属性,权限为读写。运行方式是允许以程序运行。然后双击vs文件打开slickedit的。

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2011-11-12 14:13 s3 阅读(118) 评论(0) 编辑
  2011年10月27日
摘要: 本内容是为了方便自己学习slickedit而转载的,出处:http://birdnest.blogbus.com/logs/2630364.html注:为了方便大家能够搜索到该文,特将SE改为slickedit.作为一个编辑器如UE,SI等,通常都会有一些小剂量的后悔药提供的:比如Ctrl+Z,再或者提供一个备份文件当你进行保存操作的时候。但是如果你保存了文件好几次了,却突然想回到比较前面或者最初的状态,如果你还没有退出编辑器,某些好的编辑器提供了无限Ctrl+Z的功能还能够让你如愿以偿。可是,我们都还是不免遇到这样的情况(我就很多次^ ^):当你保存了一个文件好几次了,然后又关闭了编辑器,这阅读全文
posted @ 2011-10-27 13:08 s3 阅读(5) 评论(0) 编辑
摘要: 本内容是为了方便自己学习slickedit而转载的,出处:http://birdnest.blogbus.com/logs/2626863.html今天发现SlickEdit可以和SourceSafe无缝连接,这真是太棒了!!!SlickEdit向成为我的开发中心这个目标又迈进了坚实的一步。下面先对SlickEdit的版本控制系统作个简单介绍:SlickEdit支持几乎所有的版本控制软件,列表如下:. CVS. SourceSafe. ClearCase. PVCS. Perforce. MKS Source Integrity. RCS. ComponentSoftware RCS. CCC阅读全文
posted @ 2011-10-27 13:04 s3 阅读(16) 评论(0) 编辑
摘要: 本内容是为了方便自己学习slickedit而转载的,出处:http://birdnest.blogbus.com/logs/2626856.html读过复杂代码的人都有这种体会:如果能够把一个函数或者一个文件里面已经看过的,或者不重要的部分隐藏起来,这样整个函数(文件)的结构就会看得更清晰,读起来也就更加容易。SourceInsight号称代码查看之王,却没有这个功能,UE也是从11版以后才提供的。不过SE不仅有这个功能而且非常之强大,UE的那些在它面前只能算小儿科了。1. 隐藏某个大括号内的内容这个UE是有的,SE中的操作为:将光标放到所需隐藏的大括号内的任意位置,然后选择菜单View-&g阅读全文
posted @ 2011-10-27 13:03 s3 阅读(38) 评论(0) 编辑
  2011年10月26日
摘要: 经过很长时间的对slickedit的熟悉。终于在ubuntu下成功编译了nginx1.1.16版本。过程中,遇到了一些问题。1:slickedit中目录结构的显示问题,默认的是以源码、头文件等划分显示的。可以通过右键修改成以磁盘文件目录结构显示。2:slickedit编译开源程序时,需要直接使用开源程序已有的MakeFile文件。在选择makefile选项时,选择第三个。就是使用已经存在的makefile文件,会在工程目录下生成一个文件,工程名称.mak。3:导入nginx程序的源码,可以将nginx源码svn中的文件全部拷贝到工程目录下,然后通过tree导入的方式全部导入(移除工程自己生成.阅读全文
posted @ 2011-10-26 22:13 s3 阅读(36) 评论(0) 编辑
  2011年8月17日
摘要: 在 FreeBSD8.2安装图解(双系统) 已经介绍如何安装freebsd,当然我们只是安装最小化得系统,并没有带任何桌面环境。这篇文章介绍FreeBSD如何安装gnome桌面环境。FreeBSD安装GNOME可以很容易地通过预编译包或 Ports 套件来安装:从网络安装GNOME:pkg_add -r gnome2从源代码编译GNOME,可以使用 ports树:cd /usr/ports/x11/gnome2# make install clean当然联网的话花的时间可不少。我们也可以采用以下方法,通过本地镜像来安装。进入freebsd系统,输入sysinstall选择 Configure.阅读全文
posted @ 2011-08-17 20:55 s3 阅读(615) 评论(0) 编辑
昵称:s3
园龄:4年9个月
粉丝:1
关注:11
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

搜索

 
 

常用链接

我的标签

随笔分类

随笔档案

相册

最新评论

阅读排行榜

评论排行榜

推荐排行榜