记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
How to Install Multicraft on Centos 6 64bitThis is the text tutorial of the youtube tutorial series which can be found here: http://www.youtube.com/playlist?list=PL133C2C2E824C65A4Before you start make sure nano is installed by typing this in SSH:Code:yum install nanoAnd disable SELinux:Code:setenforce 0Installing MySQL 5:To install MySQL, we do this:Code:yum install mysql mysql-serverThen we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:Code:chkconfig --levels 235 mysqld on/etc/init.d/mysqld startSet passwords for the MySQL root account:Code:mysql_secure_installationCode:[root@Server8 ~]# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MySQL to secure it, we'll need the currentpassword for the root user. If you've just installed MySQL, andyou haven't set the root passwo...
解决The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in 报错很明显的提示 mysql扩展模块就要被放弃使用了,所以请使用mysqli代替这个说明你的php版本过高造成的。解决方法:把mysql的相关模块全都改为mysqli就行了。比如:1、mysql_connect 改为mysqli_connect2、mysql_query 改为mysqli_query3、mysql_close 改为 mysqli_close
加密扩展Mcrypt安装/配置 Change language: Edit Report a Bug 安装 使用 --with-mcrypt[=DIR] 参数来编译 PHP 以启用本扩展。 DIR 是 mcrypt 的安装路径。 请确保编译 libmcrypt 的时候使用了 --disable-posix-threads 选项。 add a note User Contributed Notes 10 notes up down 42 Anonymous ¶1 year ago Note, for Ubuntu, simply installing php5-mcrypt did not get mcrypt to work. You need to execute the following commands as root to enable it:apt-get install php5-mcryptmv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/php5enmod mcryptservice apache2 restart up down 14 Polichism ¶8 months ago If you don't have a /etc/php5/conf.d directory, you can simply only do: php5enmod mcryptShould be working fine. up down 6 Tanner Williamson ¶8 months ago On Ubuntu 14.04 LTS usin...
git - 简易指南 助你开始使用 git 的简易指南,木有高深内容,;)。 Tweet 作者:罗杰·杜德勒 安装 下载 git OSX 版 下载 git Windows 版 下载 git Linux 版 创建新仓库 创建新文件夹,打开,然后执行 git init 以创建新的 git 仓库。 检出仓库 执行如下命令以创建一个本地仓库的克隆版本:git clone /path/to/repository 如果是远端服务器上的仓库,你的命令会是这个样子: git clone username@host:/path/to/repository 工作流 你的本地仓库由 git 维护的三棵“树”组成。第一个是你的 工作目录,它持有实际文件;第二个是 缓存区(Index),它像个缓存区域,临时保存你的改动;最后是 HEAD,指向你最近一次提交后的结果。 添加与提交 你可以计划改动(把...
Configuring router to run SDM( CISCO 3825路由器配置SDM功能)Follow the instructions below to configure a router to run SDM.Step 1: Connect to your router using Telnet, SSH or via console. Enter the global configuration mode using the command:Router>enable Router#conf terminalRouter(config)#Step 2 :Enable the router's HTTP/HTTPS server, using the following Cisco IOS commands: Router(config)# ip http serverRouter(config)# ip http secure-serverRouter(config)# ip http authentication localNote:- HTTPS is enabled only for crypto enabled IOS images. Step 3:Create a user with privilege level 15. Router(config)# username <username> privilege 15 password 0 <password>Note:- Replace <username> and <password> with the username and password that you want to configure. Step 4:Configure SSH and Telnet for local login and privilege level 15: Router(config)# line vty 0 4Router(config-line)# privilege level 15Router(config-line)# login localRouter(config-li...
Win7_64位配置Mysql odbc 数据源1、首先不能安装Mysql Odbc 64位,因为我们的Mysql是32位,使用Mysql Odbc 64位连接Mysql 32位,报错:驱动程序与应用程序之间的体系结构不匹配。2、要安装Mysql Odbc 32位,安装好之后,在数据源中会找不到Mysql Odbc 32位的驱动,让人误以为Odbc_32位驱动没有安装好。实际上是安装好了的,运行 C:\Windows\SysWOW64\odbcad32.exe 即可在数据源中找到驱动。注:WOW64什么意思?WOW64(Windows-On-Windows-64bit),在Windows64上面的一个子系统,Windows64位要兼容32位,因此要有一个32位的子系统。分类: MySQL
PlSQL连接Oracle报错ORA-12154: TNS: 无法解析指定的连接标识符!!之前一直使用正常,后来安装了vs2010,后再使用plsql 连接oracle11g就报这个错误。检查oracle 客户端,监听,服务配置都是正常的。后来,再使用plsql时,数据库填写时,加入 监听的主机名就Ok了。如下图:
XenServer 6.2中的虚拟机默认是不会自动启动的(据说是为了防止在HA环境中出现某些异常),所以如果母鸡(宿主机)异常断电恢复启动后,所有的虚拟机均为关机状态。但如果只是单台XenServer跑若干独立虚拟机,还是有必要让虚拟机开机自动启动的。下面的方法可实现虚拟机开机自动启动:一、用Citrix XenCenter登录并切换到Console —— Local Command Shell,或SSH工具(如putty、SecureCRT)登录到XenServer;二、查看所有的pool并设置pool自动启动:1、xe pool-list 查看所有的pool:[root@xenserver ~]# xe pool-list
uuid ( RO) : c7d7a7e4-77ad-e6a6-c935-4cba102881a8
name-label ( RW):
name-description ( RW):
master ( RO): b35d1618-ad4e-4830-89da-d93788e9f082
default-SR ( RW): 85280950-f08d-9e4d-5e51-f0ec4e221a7a
2、设置pool的自动启动:[root@xenserver ~]# xe pool-param-set uuid=c7d7a7e4-77ad-e6a6-c935-4cba102881a8 other-config:auto_poweron=true
注意要把上面的c7d7a7e4-77ad-e6a6-c935-4cba102881a8换成你的pool的uuid。三、列出所有的虚拟机并设置自动启动:1、xe vm-list 列...
最新评论