我用这个方法安装了Redmine http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_using_Debian_package
ln -s /usr/share/redmine/public /var/www/redmine
chown -R www-data:www-data /var/www/redmine
echo "RailsBaseURI /redmine" > /etc/apache2/sites-available/redmine
a2ensite redmine
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)
但我得到以下消息重启apache2.
Syntax error on line 1 of /etc/apache2/sites-enabled/redmine:
Invalid command 'RailsBaseURI', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
failed!
Run Code Online (Sandbox Code Playgroud)
最好的祝愿
用户x运行脚本.现在我想将脚本中的用户更改为User y.
#!/bin/sh
whoami
echo password | su y
whoami
Run Code Online (Sandbox Code Playgroud)
但我明白了:
x
su: must be run from a terminal
x
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助.
我想基于数组创建标签,但我总是只获得一个标签.
private void button1_Click(object sender, EventArgs e)
{
Debug.WriteLine(hardrive.GetHardDriveName.Count);
Label[] lblHDDName = new Label[hardrive.GetHardDriveName.Count];
for (int i = 0; i < hardrive.GetHardDriveName.Count; i++)
{
int x = 10;
int y = 10;
lblHDDName[i] = new Label();
lblHDDName[i].Location = new System.Drawing.Point(x, y);
lblHDDName[i].Text = "Test";
groupBoxHDD.Controls.Add(lblHDDName[i]);
y += 10;
}
}
Run Code Online (Sandbox Code Playgroud)
调试
Debug.WriteLine(hardrive.GetHardDriveName.Count);
Run Code Online (Sandbox Code Playgroud)
显示数组中的两个项目.
问题是在GroupBox中只有一个标签而不是两个.