First, make sure that the file type is executable.
There are two ways to set the file as an executable file.
1) directly select "executable" in the file property tag, -- if B uses a graphical interface, this method is the simplest and most direct.
2) run the command chmod + X file. Sh. Add executable attributes to file attributes.
Then, execute the shell script file.
1) double-click File. Sh to run the
Run python on ubuntu to connect to pg. the following error occurs: ImportError: No module named psycopg2, ttupythonRun python on ubuntu to connect to pg. The error ImportError: No module named psycopg2 is returned.Root @ pgproxy1 :~ # Python/home/zxw/PGWriterTest_m.pyTraceback (most recent call last ):File "/home/zxw/PGWriterTest_m.py", line 4, in Import psycopg2
Environment:
Ubuntu 14.04.1
MongoDB v3.4.1
Virtual Machine Connection mode is a NAT connection
First, MongoDB startup problemAfter updating the kernel, when running MongoDB, the Data directory/data/db not found. Error, the time is long not remember installed configuration OrzLooked up some informa
_id field as the primary key
A more intuitive reflection of the correspondence between SQL and MongoDB
Basic syntax > DB #显示当前所在数据库, default is Test > use database_name #切换数据库, if the name does not exist, it is equivalent to creating a new database (which is not saved until the collection is created) > Show dbs/>show databases #查看所有的数据库 > db. collection_name insert ({' xx ': ' oo '}) #创建集合 inserted content formatted
the program.But what if you want your program to run from every location?You can save your program in one of the directories in the PATH environment variable. Each time you run any program, the system looks for the directories listed in the PATH environment variable. Then run the program. Simply copy the source file to one of the directories listed in path to ma
system will prompt that the upgrade failed. Then, if you connect to the server again, the server will not perform liveupdate again and you will be able to connect to the server again. However, the most strange thing is that the data will always exit abnormally when it is downloaded, or the data will exit unexpectedly after a while. No reason is found yet.Great Intelligence 5.50
This is even worse. It always prompts for a mozilla activeX control. If it is not installed, you cannot see the Japan
Recently, the Department has got three HP dlw.g5 servers, and the machines are old. As a result, we want to create a "Cloud", so we may be able to make full use of this technology.
Ubuntu enterprise cloud looks quite simple, just do what you say, mirror the image, engrave the CD, install CLC, and two NC servers. Looking at the official manual, I thought it was too easy !!
However, everything is complete, and configuration is complete. It's a tragedy
The following error is prompted when installing any software in Ubuntu today: You might want to run 'apt-get-F install' to correct these:The following packages have unmet dependencies:KATE: depends: kdelibs4c2a (> =. 5.9) but it is not going to be installedDepends: libqt3-mt (> =. 3.8b) but it is not going to be installedRecommends: kregexpeditor but it is not installableKscope: depends: kdelibs4c2a (>=4:3.
From: http://hi.baidu.com/xiboliya/blog/item/fee581d46cf5e41fa08bb7fb.html
If Ubuntu wants to install new software, the Deb installation package (for example, iptux. Deb) already exists, but cannot log on to the desktop environment. How can I install it? The answer is: run the dpkg command.The common format of the dpkg command is as follows: Sudo dpkg-I iptux. Deb # View the detailed information of iptux.
Install the. NET Core Reference address: Http://www.microsoft.com/net/core/preview#linuxubuntuServer version Ubbuntu 16.04Execute command' echo "Deb [Arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/xenial main" >/etc/apt/ Sources.list.d/dotnetdev.list'sudo apt-key adv--keyserver HKP:// keyserver.ubuntu.com:80--recv-keys 417a0893sudo apt-get updatesudo apt-get install dotnet-sdk-2.0. 0-preview2-006497The installation was successful.Then install Nginx on the server and refer to
Preparatory workThe first thing to install is IpythonRecommended direct Anaconda (installed on the server).Anaconda helps you integrate N-Python-related environments (packages) so you don't have to manually click and installServer Startup Ipython NotebookCode:# Port own definition # IP I direct use of four 0, if there is a need to change their ownRemember to specify the IP and port, where your current path starts, and where the path is when you enter notebook.Local accessCopy the in URL to a loc
. Install the kernel mirror and the module package$ Cd ..$ Sudo dpkg-I linux-image-2.6.29-4-generic_2.6.29-4-generic-10.00.Custom_i386.debAfter the installation is complete, we can/Lib/modulesThe directory contains more2.6.29-4-genericDirectory/BootThe directory contains moreConfig-2.6.29-4-generic, System. map-2.6.29-4-generic, initrd. img-2.6.29-4-generic, vmlinuz-2.6.29-4-genericThese files./Boot/grub/menu. lstThe file contains more content.Title Ubuntu
I recently installed the latest nvidia graphics card in Ubuntu. Now I want to share the method, as I said on the Internet, first, press "sudogedit/etc/default/linux-restricted-modules-common" under the terminal, and then add "nvnvidia-new" to the quotation marks in the last line ", then press ctrl + alt + f1, and then disable the running of the command, such as running the command, and running the command. d/gdmstop, and then sudos
I recently install
This is a creation in
Article, where the information may have evolved or changed. Attention:
The following installation configuration is in accordance with the official website or textbook
I. Download and install Go
On Ubuntu12.04, if you are installing using the Go installation package, simply enter the command line
sudo apt-get install golang-go
Below we focus on the more universal source installation, which is applicable in Linux distributions.
Go to go Language official website http://gola
The XAMPP referred to here are: XAMPPThe specific configuration environment:
Kubuntu 14.04LTS 64bit
Lampp 1.8.3-4
First, get the latest source of MongoDB PHP driver from GitHub: Https://github.com/mongodb/mongo-php-driverBefore you follow the prompts, install the following dependencies:sudo apt-get install install m4sudo apt-get install autoconfsudo apt-get install libssl-devThen, follow the proj
nano/etc/ld.so.conf.d/freerdp.conf, writes/USR/LOCAL/LIB/FREERDP to the file.⑺ Check that the configuration file is correct, and view the FREERDP path for sudo ldconfig,which xfreerdp.⑻ run FREERDP, without USB redirection operation parameters: Xfreerdp/u:admin/p:1/w:1366/h:768/v:192.168.0.209:80. Operating parameters with USB redirection: xfreerdp/u:administrator/p:realor#123/w:1366/h:768/drive:usb,/mnt/hgfs/v:192.168.0.209:3389. /mnt/hgfs is a USB
Install Tomcat7.0 on Ubuntu and run it automatically at startup. install and install tomcat in green. Download a tomcat file and unbind it to the specified directory. Then, go to the bin folder in the tomcat directory and run sudo. /startup. sh to start 2. run tomcat7.0 automatically at startup and enter with the Root
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.